| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/ |
| H A D | DontModifyStdNamespaceCheck.cpp | 46 hasDeclContext(namespaceDecl(hasAnyName("std", "posix"), in registerMatchers() 47 unless(hasParent(namespaceDecl()))) in registerMatchers() 51 hasAncestor(namespaceDecl(hasAnyName("std", "posix"), in registerMatchers() 52 unless(hasParent(namespaceDecl())))))))))); in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/ |
| H A D | NoInternalDependenciesCheck.cpp | 25 nestedNameSpecifierLoc(loc(specifiesNamespace(namespaceDecl( in registerMatchers() 27 hasParent(namespaceDecl(hasName("absl")))))), in registerMatchers()
|
| H A D | NoNamespaceCheck.cpp | 22 namespaceDecl(hasName("::absl"), unless(isInAbseilFile())) in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-change-namespace/ |
| H A D | ChangeNamespace.cpp | 378 allOf(hasAncestor(namespaceDecl(hasName(FullOldNs)).bind("ns_decl")), in registerMatchers() 381 IsInMovedNs, unless(hasAncestor(namespaceDecl(hasName(Prefix))))); in registerMatchers() 407 IsInMovedNs, hasParent(namespaceDecl())) in registerMatchers() 414 IsInMovedNs, hasParent(namespaceDecl())) in registerMatchers() 422 hasAncestor(namespaceDecl()), in registerMatchers() 424 isImplicit(), hasAncestor(namespaceDecl(isAnonymous())), in registerMatchers() 494 hasAncestor(namespaceDecl(isAnonymous())), in registerMatchers() 496 hasParent(namespaceDecl())); in registerMatchers() 505 hasGlobalStorage(), hasParent(namespaceDecl()), in registerMatchers() 514 hasParent(namespaceDecl()), in registerMatchers() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/ |
| H A D | UnnamedNamespaceInHeaderCheck.cpp | 41 Finder->addMatcher(namespaceDecl(isAnonymous()).bind("anonymousNamespace"), in registerMatchers()
|
| H A D | FunctionNamingCheck.cpp | 101 hasAncestor(namespaceDecl()), isMain(), isImplicit(), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | InterfacesGlobalInitCheck.cpp | 23 namespaceDecl(), // Namespace scope. in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-move/ |
| H A D | Move.cpp | 510 hasDeclContext(anyOf(namespaceDecl(), translationUnitDecl())); in registerMatchers() 521 unless(ForwardClassDecls), unless(namespaceDecl()), in registerMatchers() 525 hasParent(decl(anyOf(namespaceDecl(), translationUnitDecl()))), in registerMatchers() 526 hasDeclContext(decl(anyOf(namespaceDecl(), translationUnitDecl())))); in registerMatchers() 541 hasParent(decl(anyOf(namespaceDecl(), translationUnitDecl()))), InOldCC); in registerMatchers() 573 auto InAnonymousNS = hasParent(namespaceDecl(isAnonymous())); in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | ConcatNestedNamespacesCheck.cpp | 66 Finder->addMatcher(ast_matchers::namespaceDecl().bind("namespace"), this); in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | ForwardDeclarationNamespaceCheck.cpp | 35 hasParent(decl(anyOf(namespaceDecl(), translationUnitDecl()))), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | NamespaceCommentCheck.cpp | 39 Finder->addMatcher(namespaceDecl().bind("namespace"), this); in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/ |
| H A D | FindAllSymbols.cpp | 129 hasDeclContext(anyOf(namespaceDecl(), translationUnitDecl())); in registerMatchers()
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersInternalTest.cpp | 304 namespaceDecl(isInline(), hasName("m")))); in TEST()
|
| H A D | ASTMatchersTraversalTest.cpp | 47 recordDecl(hasDeclContext(namespaceDecl(hasName("M")))))); in TEST() 54 recordDecl(hasDeclContext(namespaceDecl(hasName("N")))))); in TEST() 61 recordDecl(hasDeclContext(namespaceDecl( in TEST() 62 hasName("M"), hasDeclContext(namespaceDecl())))))); in TEST() 5573 EXPECT_TRUE(matches(Fragment, namespaceDecl(hasDescendant(attr())))); in TEST() 5576 namespaceDecl(hasName("a"), in TEST() 5584 EXPECT_TRUE(matches(Fragment, attr(hasAncestor(namespaceDecl())))); in TEST()
|
| H A D | ASTMatchersNarrowingTest.cpp | 3525 EXPECT_TRUE(notMatches("namespace N {}", namespaceDecl(isAnonymous()))); in TEST_P() 3526 EXPECT_TRUE(matches("namespace {}", namespaceDecl(isAnonymous()))); in TEST_P() 3587 hasAncestor(namespaceDecl(hasName("filesystem"), in TEST_P()
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | ASTImporterTest.cpp | 946 namespaceDecl(has(usingShadowDecl(hasName("bar"))))); in TEST_P() 951 namespaceDecl(has(usingShadowDecl(hasName("baz"))))); in TEST_P() 1229 FirstDeclMatcher<NamespaceDecl>().match(FromTU, namespaceDecl()); in TEST_P() 1470 auto Pattern = namespaceDecl(has(classTemplateDecl( in TEST_P() 1477 Pattern = namespaceDecl(has(classTemplateSpecializationDecl(hasName("X")))); in TEST_P() 4280 TU, namespaceDecl()); in TEST_P() 5346 LastDeclMatcher<NamespaceDecl>().match(ToTU, namespaceDecl(hasName("N"))); in TEST_P() 5608 FromTU, namespaceDecl(hasName("NS"))); in TEST_P() 5674 FromTU, namespaceDecl(hasName("X"))); in TEST_P() 5921 FromTU, namespaceDecl(hasName("ns"))); in TEST_P()
|
| H A D | DeclPrinterTest.cpp | 212 namespaceDecl(has(varDecl(hasName("X")))).bind("id"), in TEST()
|
| H A D | StructuralEquivalenceTest.cpp | 265 LastDeclMatcher<NamespaceDecl>().match(get<1>(Decls), namespaceDecl()); in TEST_F()
|
| /llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/ |
| H A D | Registry.cpp | 488 REGISTER_MATCHER(namespaceDecl); in RegistryMaps()
|
| /llvm-project-15.0.7/clang/lib/ASTMatchers/ |
| H A D | ASTMatchersInternal.cpp | 741 const internal::VariadicDynCastAllOfMatcher<Decl, NamespaceDecl> namespaceDecl; variable
|
| /llvm-project-15.0.7/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchers.h | 408 namespaceDecl;
|