Home
last modified time | relevance | path

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

/external/clang/unittests/ASTMatchers/
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()
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()
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp220 REGISTER_MATCHER(hasDeclContext); in RegistryMaps()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h4946 AST_MATCHER_P(Decl, hasDeclContext, internal::Matcher<Decl>, InnerMatcher) { in AST_MATCHER_P() argument