Home
last modified time | relevance | path

Searched refs:hasDeclContext (Results 1 – 17 of 17) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/
H A DFindAllSymbols.cpp129 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 DDontModifyStdNamespaceCheck.cpp46 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 DDeallocInCategoryCheck.cpp27 hasDeclContext(objcCategoryImplDecl().bind("impl"))) in registerMatchers()
H A DMissingHashCheck.cpp43 hasDeclContext(objcImplementationDecl( in registerMatchers()
H A DSuperSelfCheck.cpp81 hasDeclContext(objcImplementationDecl(hasInterface( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DInterfacesGlobalInitCheck.cpp22 hasDeclContext(anyOf(translationUnitDecl(), // Global scope. in registerMatchers()
H A DPreferMemberInitializerCheck.cpp77 to(varDecl(unless(parmVarDecl()), hasDeclContext(equalsNode(Context))))); in isSafeAssignment()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DGlobalNamesInHeadersCheck.cpp43 hasDeclContext(translationUnitDecl())) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DUncheckedOptionalAccessCheck.cpp83 unless(hasDeclContext(cxxRecordDecl(isLambda()))), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DStringFindStrContainsCheck.cpp52 to(varDecl(hasName("npos"), hasDeclContext(StringLikeClass)))); in makeRewriteRule()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DPassByValueCheck.cpp230 hasDeclContext( in registerMatchers()
H A DUseAutoCheck.cpp171 hasDeclContext(recordDecl(hasStdContainerName(), isInStdNamespace()))); in standardIterator()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersNodeTest.cpp121 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 DASTMatchersTraversalTest.cpp40 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 DMove.cpp510 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 DRegistry.cpp300 REGISTER_MATCHER(hasDeclContext); in RegistryMaps()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h7402 AST_MATCHER_P(Decl, hasDeclContext, internal::Matcher<Decl>, InnerMatcher) { in AST_MATCHER_P() argument