diff options
author | Carlos Galvez <carlosgalvezp@gmail.com> | 2023-01-14 17:40:54 +0000 |
---|---|---|
committer | Carlos Galvez <carlosgalvezp@gmail.com> | 2023-01-14 18:51:39 +0000 |
commit | 7d2ea6c422d3f5712b7253407005e1a465a76946 (patch) | |
tree | 92b55b57060c306b0570e3d904c4bd617aa422a6 /clang-tools-extra/clang-tidy/misc/MisplacedConstCheck.cpp | |
parent | 10cdad4065d7d3b53be3e0f03a2d71951c2bacd6 (diff) | |
download | llvm-7d2ea6c422d3f5712b7253407005e1a465a76946.zip llvm-7d2ea6c422d3f5712b7253407005e1a465a76946.tar.gz llvm-7d2ea6c422d3f5712b7253407005e1a465a76946.tar.bz2 |
[clang-tidy][NFC] Use C++17 nested namespaces in the clang-tidy folder
Fix applied by running:
run-clang-tidy.py -checks=-*,modernize-concat-nested-namespaces
Differential Revision: https://reviews.llvm.org/D141770
Diffstat (limited to 'clang-tools-extra/clang-tidy/misc/MisplacedConstCheck.cpp')
-rw-r--r-- | clang-tools-extra/clang-tidy/misc/MisplacedConstCheck.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/clang-tools-extra/clang-tidy/misc/MisplacedConstCheck.cpp b/clang-tools-extra/clang-tidy/misc/MisplacedConstCheck.cpp index 62df088..4aaf64c 100644 --- a/clang-tools-extra/clang-tidy/misc/MisplacedConstCheck.cpp +++ b/clang-tools-extra/clang-tidy/misc/MisplacedConstCheck.cpp @@ -12,9 +12,7 @@ using namespace clang::ast_matchers; -namespace clang { -namespace tidy { -namespace misc { +namespace clang::tidy::misc { void MisplacedConstCheck::registerMatchers(MatchFinder *Finder) { auto NonConstAndNonFunctionPointerType = hasType(pointerType(unless( @@ -74,6 +72,4 @@ void MisplacedConstCheck::check(const MatchFinder::MatchResult &Result) { diag(AliasLoc, "%0 declared here", DiagnosticIDs::Note) << AliasType; } -} // namespace misc -} // namespace tidy -} // namespace clang +} // namespace clang::tidy::misc |