Home
last modified time | relevance | path

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

/aosp_15_r20/external/clang/unittests/ASTMatchers/
H A DASTMatchersTraversalTest.cpp39 TEST(DeclarationMatcher, hasDeclContext) { in TEST() argument
46 recordDecl(hasDeclContext(namespaceDecl(hasName("M")))))); in TEST()
53 recordDecl(hasDeclContext(namespaceDecl(hasName("N")))))); in TEST()
60 recordDecl(hasDeclContext(namespaceDecl( in TEST()
61 hasName("M"), hasDeclContext(namespaceDecl())))))); in TEST()
63 EXPECT_TRUE(matches("class D{};", decl(hasDeclContext(decl())))); in TEST()
H A DASTMatchersNodeTest.cpp104 Code, varDecl(hasName("MyVar1"), hasDeclContext(translationUnitDecl())))); in TEST()
106 Code, varDecl(hasName("MyVar2"), hasDeclContext(translationUnitDecl())))); in TEST()
110 hasDeclContext(decl(hasDeclContext(translationUnitDecl())))))); in TEST()
/aosp_15_r20/external/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp220 REGISTER_MATCHER(hasDeclContext); in RegistryMaps()
/aosp_15_r20/external/clang/include/clang/ASTMatchers/
H A DASTMatchers.h4946 AST_MATCHER_P(Decl, hasDeclContext, internal::Matcher<Decl>, InnerMatcher) { in AST_MATCHER_P() argument
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/include/clang/ASTMatchers/
DASTMatchers.h7518 AST_MATCHER_P(Decl, hasDeclContext, internal::Matcher<Decl>, InnerMatcher) { in AST_MATCHER_P() argument
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/include/clang/ASTMatchers/
DASTMatchers.h7695 AST_MATCHER_P(Decl, hasDeclContext, internal::Matcher<Decl>, InnerMatcher) { in AST_MATCHER_P() argument
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/include/clang/ASTMatchers/
DASTMatchers.h7695 AST_MATCHER_P(Decl, hasDeclContext, internal::Matcher<Decl>, InnerMatcher) { in AST_MATCHER_P() argument
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/include/clang/ASTMatchers/
DASTMatchers.h7697 AST_MATCHER_P(Decl, hasDeclContext, internal::Matcher<Decl>, InnerMatcher) { in AST_MATCHER_P() argument