Home
last modified time | relevance | path

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

/external/clang/unittests/ASTMatchers/
DASTMatchersTest.cpp355 TEST(DeclarationMatcher, hasDeclContext) { in TEST() argument
362 recordDecl(hasDeclContext(namespaceDecl(hasName("M")))))); in TEST()
369 recordDecl(hasDeclContext(namespaceDecl(hasName("N")))))); in TEST()
376 recordDecl(hasDeclContext(namespaceDecl( in TEST()
377 hasName("M"), hasDeclContext(namespaceDecl())))))); in TEST()
379 EXPECT_TRUE(matches("class D{};", decl(hasDeclContext(decl())))); in TEST()
388 Code, varDecl(hasName("MyVar1"), hasDeclContext(translationUnitDecl())))); in TEST()
390 Code, varDecl(hasName("MyVar2"), hasDeclContext(translationUnitDecl())))); in TEST()
394 hasDeclContext(decl(hasDeclContext(translationUnitDecl())))))); in TEST()
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp206 REGISTER_MATCHER(hasDeclContext); in RegistryMaps()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h4304 AST_MATCHER_P(Decl, hasDeclContext, internal::Matcher<Decl>, InnerMatcher) { in AST_MATCHER_P() argument