Home
last modified time | relevance | path

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

/external/clang/unittests/ASTMatchers/
DASTMatchersTest.cpp25 DeclarationMatcher HasEmptyName = recordDecl(hasName("")); in TEST()
32 DeclarationMatcher HasEmptyName = recordDecl(matchesName("")); in TEST()
39 DeclarationMatcher IsDerivedFromEmpty = recordDecl(isDerivedFrom("")); in TEST()
108 DeclarationMatcher ClassMatcher(recordDecl()); in TEST()
117 DeclarationMatcher ClassX = recordDecl(recordDecl(hasName("X"))); in TEST()
125 DeclarationMatcher IsDerivedFromX = recordDecl(isDerivedFrom("X")); in TEST()
133 DeclarationMatcher IsAX = recordDecl(isSameOrDerivedFrom("X")); in TEST()
142 recordDecl(hasName("Z"), isDerivedFrom("X")); in TEST()
261 recordDecl(isDerivedFrom(recordDecl(hasName("Some")))))); in TEST()
268 recordDecl(hasName("B"), isDerivedFrom(recordDecl(hasName("A")))))); in TEST()
[all …]
/external/clang/unittests/AST/
DASTContextParentMapTest.cpp31 methodDecl(hasParent(recordDecl(hasName("C")))))); in TEST()
46 hasParent(recordDecl(isTemplateInstantiation()))))); in TEST()
51 hasParent(recordDecl(unless(isTemplateInstantiation())))))); in TEST()
56 allOf(hasParent(recordDecl(unless(isTemplateInstantiation()))), in TEST()
57 hasParent(recordDecl(isTemplateInstantiation())))))); in TEST()
66 allOf(hasAncestor(recordDecl(isTemplateInstantiation())), in TEST()
67 hasAncestor(recordDecl(unless(isTemplateInstantiation()))))))); in TEST()
DSourceLocationTest.cpp40 EXPECT_FALSE(Verifier.match("int i;", recordDecl())); in TEST()
530 friendDecl(hasParent(recordDecl(isTemplateInstantiation()))))); in TEST()
/external/clang/unittests/ASTMatchers/Dynamic/
DVariantValueTest.cpp60 Value = VariantMatcher::SingleMatcher(recordDecl()); in TEST()
85 Value = VariantMatcher::SingleMatcher(recordDecl()); in TEST()
129 recordDecl(hasName("X")))) in TEST()
DRegistryTest.cpp218 specifiesType(hasDeclaration(recordDecl(hasName("A"))))))) in TEST_F()
373 D = recordDecl( in TEST_F()
/external/clang/docs/
DLibASTMatchers.rst30 in the AST of a translation unit, you can call `recordDecl()
34 call ``recordDecl(hasName("Foo"))`` returns a matcher that matches classes or
39 "``Bar``": ``recordDecl(hasName("Foo"), isDerivedFrom("Bar"))``.
81 are bindable; for example, ``recordDecl(hasName("MyClass")).bind("id")`` will
82 bind the matched ``recordDecl`` node to the string "``id``", to be later
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h304 CXXRecordDecl> recordDecl; variable
3295 auto IsInstantiation = decl(anyOf(recordDecl(isTemplateInstantiation()), in AST_MATCHER_FUNCTION()
3316 hasAncestor(decl(anyOf(recordDecl(isTemplateInstantiation()), in AST_MATCHER_FUNCTION()
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp297 REGISTER_MATCHER(recordDecl); in RegistryMaps()