Home
last modified time | relevance | path

Searched refs:namespaceDecl (Results 1 – 21 of 21) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/
H A DDontModifyStdNamespaceCheck.cpp46 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 DNoInternalDependenciesCheck.cpp25 nestedNameSpecifierLoc(loc(specifiesNamespace(namespaceDecl( in registerMatchers()
27 hasParent(namespaceDecl(hasName("absl")))))), in registerMatchers()
H A DNoNamespaceCheck.cpp22 namespaceDecl(hasName("::absl"), unless(isInAbseilFile())) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-change-namespace/
H A DChangeNamespace.cpp378 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 DUnnamedNamespaceInHeaderCheck.cpp41 Finder->addMatcher(namespaceDecl(isAnonymous()).bind("anonymousNamespace"), in registerMatchers()
H A DFunctionNamingCheck.cpp101 hasAncestor(namespaceDecl()), isMain(), isImplicit(), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DInterfacesGlobalInitCheck.cpp23 namespaceDecl(), // Namespace scope. in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-move/
H A DMove.cpp510 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 DConcatNestedNamespacesCheck.cpp66 Finder->addMatcher(ast_matchers::namespaceDecl().bind("namespace"), this); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DForwardDeclarationNamespaceCheck.cpp35 hasParent(decl(anyOf(namespaceDecl(), translationUnitDecl()))), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DNamespaceCommentCheck.cpp39 Finder->addMatcher(namespaceDecl().bind("namespace"), this); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/
H A DFindAllSymbols.cpp129 hasDeclContext(anyOf(namespaceDecl(), translationUnitDecl())); in registerMatchers()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersInternalTest.cpp304 namespaceDecl(isInline(), hasName("m")))); in TEST()
H A DASTMatchersTraversalTest.cpp47 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 DASTMatchersNarrowingTest.cpp3525 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 DASTImporterTest.cpp946 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 DDeclPrinterTest.cpp212 namespaceDecl(has(varDecl(hasName("X")))).bind("id"), in TEST()
H A DStructuralEquivalenceTest.cpp265 LastDeclMatcher<NamespaceDecl>().match(get<1>(Decls), namespaceDecl()); in TEST_F()
/llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp488 REGISTER_MATCHER(namespaceDecl); in RegistryMaps()
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp741 const internal::VariadicDynCastAllOfMatcher<Decl, NamespaceDecl> namespaceDecl; variable
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h408 namespaceDecl;