Home
last modified time | relevance | path

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

/external/clang/unittests/ASTMatchers/
DASTMatchersNarrowingTest.cpp35 recordDecl(hasName("T"))))))))); in TEST()
40 recordDecl(hasName("T"))))), in TEST()
46 recordDecl(hasName("T"))))), in TEST()
52 DeclarationMatcher HasClassX = recordDecl(has(recordDecl(hasName("X")))); in TEST()
57 recordDecl(hasName("Y"), has(recordDecl(hasName("X")))); in TEST()
66 recordDecl( in TEST()
67 has(recordDecl( in TEST()
68 has(recordDecl(hasName("X"))), in TEST()
69 has(recordDecl(hasName("Y"))), in TEST()
71 has(recordDecl( in TEST()
[all …]
DASTMatchersTraversalTest.cpp36 cxxRecordDecl(hasName("B"), isDerivedFrom(recordDecl())))); in TEST()
46 recordDecl(hasDeclContext(namespaceDecl(hasName("M")))))); in TEST()
53 recordDecl(hasDeclContext(namespaceDecl(hasName("N")))))); in TEST()
60 recordDecl(hasDeclContext(namespaceDecl( in TEST()
125 expr(hasType(pointsTo(recordDecl(hasName("X")))), in TEST()
136 expr(hasType(pointsTo(recordDecl(hasName("X")))), in TEST()
148 TypeMatcher TypeA = hasDeclaration(recordDecl(hasName("A"))); in TEST()
161 recordDecl(hasName("A"), has(recordDecl(hasName("B"))))); in TEST()
245 TypeMatcher ClassX = hasDeclaration(recordDecl(hasName("X"))); in TEST()
257 TypeMatcher ClassX = hasDeclaration(recordDecl(hasName("X"))); in TEST()
[all …]
DASTMatchersInternalTest.cpp25 DeclarationMatcher HasEmptyName = recordDecl(hasName("")); in TEST()
32 DeclarationMatcher HasEmptyName = recordDecl(matchesName("")); in TEST()
63 DeclarationMatcher HasClassB = just(has(recordDecl(hasName("B")).bind("b"))); in TEST()
86 polymorphicHas(recordDecl(hasName("B")).bind("b")); in TEST()
98 polymorphicHas(recordDecl(hasName("B"))); in TEST()
196 recordDecl(hasName("X"), isExpansionInMainFile()))); in TEST()
197 EXPECT_TRUE(notMatches("", recordDecl(isExpansionInMainFile()))); in TEST()
201 recordDecl(isExpansionInMainFile()), false, in TEST()
209 "#include \"other\"\n", recordDecl(isExpansionInSystemHeader()), true, in TEST()
212 recordDecl(isExpansionInSystemHeader()), in TEST()
[all …]
DASTMatchersNodeTest.cpp84 DeclarationMatcher ClassMatcher(recordDecl()); in TEST()
91 DeclarationMatcher ClassX = recordDecl(recordDecl(hasName("X"))); in TEST()
202 cxxMemberCallExpr(on(hasType(recordDecl(hasName("Y"))))); in TEST()
221 cxxMemberCallExpr(on(hasType(pointsTo(recordDecl(hasName("Y")))))); in TEST()
327 cxxMemberCallExpr(thisPointerType(recordDecl(hasName("Y")))); in TEST()
359 cxxMemberCallExpr(thisPointerType(recordDecl(hasName("Y")))))))); in TEST()
1009 initListExpr(hasType(recordDecl(hasName("B")))))); in TEST()
1333 recordType(hasDeclaration(recordDecl(hasName("S")))))); in TEST()
1335 recordType(hasDeclaration(recordDecl(hasName("S")))))); in TEST()
1392 specifiesType(hasDeclaration(recordDecl(hasName("A"))))); in TEST()
[all …]
/external/clang/unittests/ASTMatchers/Dynamic/
DVariantValueTest.cpp57 Value = VariantMatcher::SingleMatcher(recordDecl()); in TEST()
82 Value = VariantMatcher::SingleMatcher(recordDecl()); in TEST()
126 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/unittests/AST/
DASTContextParentMapTest.cpp28 cxxMethodDecl(hasParent(recordDecl(hasName("C")))))); in TEST()
DSourceLocationTest.cpp40 EXPECT_FALSE(Verifier.match("int i;", recordDecl())); in TEST()
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp370 REGISTER_MATCHER(recordDecl); in RegistryMaps()
/external/clang/lib/Sema/
DSemaType.cpp3375 RecordDecl *recordDecl = recordType->getDecl(); in classifyPointerDeclarator() local
3380 isCFError = (S.CFError == recordDecl); in classifyPointerDeclarator()
3384 if (recordDecl->getTagKind() == TTK_Struct && numNormalPointers > 0) { in classifyPointerDeclarator()
3385 if (auto bridgeAttr = recordDecl->getAttr<ObjCBridgeAttr>()) { in classifyPointerDeclarator()
3387 S.CFError = recordDecl; in classifyPointerDeclarator()
/external/v8/tools/clang/rewrite_to_chrome_style/
DRewriteToChromeStyle.cpp1329 unless(hasAncestor(recordDecl( in main()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h354 RecordDecl> recordDecl; variable