| /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() 142 auto ExternCMatcher = hasDeclContext(linkageSpecDecl()); in registerMatchers() 183 hasDeclContext(linkageSpecDecl()))); in registerMatchers() 194 anyOf(hasDeclContext(enumDecl(HasNSOrTUCtxMatcher)), ExternCMatcher)); in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/ |
| H A D | DontModifyStdNamespaceCheck.cpp | 46 hasDeclContext(namespaceDecl(hasAnyName("std", "posix"), in registerMatchers() 55 auto InsideStdClassOrClassTemplateSpecialization = hasDeclContext( in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/objc/ |
| H A D | DeallocInCategoryCheck.cpp | 27 hasDeclContext(objcCategoryImplDecl().bind("impl"))) in registerMatchers()
|
| H A D | MissingHashCheck.cpp | 43 hasDeclContext(objcImplementationDecl( in registerMatchers()
|
| H A D | SuperSelfCheck.cpp | 81 hasDeclContext(objcImplementationDecl(hasInterface( in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | InterfacesGlobalInitCheck.cpp | 22 hasDeclContext(anyOf(translationUnitDecl(), // Global scope. in registerMatchers()
|
| H A D | PreferMemberInitializerCheck.cpp | 77 to(varDecl(unless(parmVarDecl()), hasDeclContext(equalsNode(Context))))); in isSafeAssignment()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/ |
| H A D | GlobalNamesInHeadersCheck.cpp | 43 hasDeclContext(translationUnitDecl())) in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | UncheckedOptionalAccessCheck.cpp | 83 unless(hasDeclContext(cxxRecordDecl(isLambda()))), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/ |
| H A D | StringFindStrContainsCheck.cpp | 52 to(varDecl(hasName("npos"), hasDeclContext(StringLikeClass)))); in makeRewriteRule()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | PassByValueCheck.cpp | 230 hasDeclContext( in registerMatchers()
|
| H A D | UseAutoCheck.cpp | 171 hasDeclContext(recordDecl(hasStdContainerName(), isInStdNamespace()))); in standardIterator()
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersNodeTest.cpp | 121 Code, varDecl(hasName("MyVar1"), hasDeclContext(translationUnitDecl())))); in TEST_P() 123 Code, varDecl(hasName("MyVar2"), hasDeclContext(translationUnitDecl())))); in TEST_P() 127 hasDeclContext(decl(hasDeclContext(translationUnitDecl())))))); in TEST_P()
|
| H A D | ASTMatchersTraversalTest.cpp | 40 TEST(DeclarationMatcher, hasDeclContext) { in TEST() argument 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() 64 EXPECT_TRUE(matches("class D{};", decl(hasDeclContext(decl())))); in TEST()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-move/ |
| H A D | Move.cpp | 510 hasDeclContext(anyOf(namespaceDecl(), translationUnitDecl())); in registerMatchers() 526 hasDeclContext(decl(anyOf(namespaceDecl(), translationUnitDecl())))); in registerMatchers()
|
| /llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/ |
| H A D | Registry.cpp | 300 REGISTER_MATCHER(hasDeclContext); in RegistryMaps()
|
| /llvm-project-15.0.7/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchers.h | 7402 AST_MATCHER_P(Decl, hasDeclContext, internal::Matcher<Decl>, InnerMatcher) { in AST_MATCHER_P() argument
|