Home
last modified time | relevance | path

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

12

/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 …]
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 …]
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 …]
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/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersNarrowingTest.cpp173 hasArgument(1, hasType(pointsTo(recordDecl(hasName("T"))))))))); in TEST_P()
178 hasArgument(1, hasType(pointsTo(recordDecl(hasName("T"))))), in TEST_P()
184 hasArgument(1, hasType(pointsTo(recordDecl(hasName("T"))))), in TEST_P()
195 DeclarationMatcher HasClassX = recordDecl(has(recordDecl(hasName("X")))); in TEST_P()
200 recordDecl(hasName("Y"), has(recordDecl(hasName("X")))); in TEST_P()
212 recordDecl(has(recordDecl(has(recordDecl(hasName("X"))), in TEST_P()
213 has(recordDecl(hasName("Y"))), hasName("Z"))), in TEST_P()
214 has(recordDecl(has(recordDecl(hasName("A"))), in TEST_P()
215 has(recordDecl(hasName("B"))), hasName("C"))), in TEST_P()
268 DeclarationMatcher Recursive = recordDecl( in TEST_P()
[all …]
DASTMatchersInternalTest.cpp26 DeclarationMatcher HasEmptyName = recordDecl(hasName("")); in TEST()
33 DeclarationMatcher HasEmptyName = recordDecl(matchesName("")); in TEST()
56 DeclarationMatcher HasClassB = just(has(recordDecl(hasName("B")).bind("b"))); in TEST()
78 polymorphicHas(recordDecl(hasName("B")).bind("b")); in TEST()
90 polymorphicHas(recordDecl(hasName("B"))); in TEST()
208 recordDecl(hasName("X"), isExpansionInMainFile()))); in TEST()
209 EXPECT_TRUE(notMatches("", recordDecl(isExpansionInMainFile()))); in TEST()
213 recordDecl(isExpansionInMainFile()), false, in TEST()
221 recordDecl(isExpansionInSystemHeader()), in TEST()
224 recordDecl(isExpansionInSystemHeader()), in TEST()
[all …]
DASTMatchersTraversalTest.cpp35 cxxRecordDecl(hasName("B"), isDerivedFrom(recordDecl())))); in TEST()
45 recordDecl(hasDeclContext(namespaceDecl(hasName("M")))))); in TEST()
52 recordDecl(hasDeclContext(namespaceDecl(hasName("N")))))); in TEST()
59 recordDecl(hasDeclContext(namespaceDecl( in TEST()
124 expr(hasType(pointsTo(recordDecl(hasName("X")))), in TEST()
135 expr(hasType(pointsTo(recordDecl(hasName("X")))), in TEST()
147 TypeMatcher TypeA = hasDeclaration(recordDecl(hasName("A"))); in TEST()
160 recordDecl(hasName("A"), has(recordDecl(hasName("B"))))); in TEST()
301 TypeMatcher ClassX = hasDeclaration(recordDecl(hasName("X"))); in TEST()
313 TypeMatcher ClassX = hasDeclaration(recordDecl(hasName("X"))); in TEST()
[all …]
DASTMatchersNodeTest.cpp103 DeclarationMatcher ClassX = recordDecl(recordDecl(hasName("X"))); in TEST_P()
210 friendDecl(hasType(recordDecl(hasName("X")))))); in TEST_P()
324 cxxMemberCallExpr(on(hasType(recordDecl(hasName("Y"))))); in TEST_P()
338 cxxMemberCallExpr(on(hasType(pointsTo(recordDecl(hasName("Y")))))); in TEST_P()
481 cxxMemberCallExpr(thisPointerType(recordDecl(hasName("Y"))))); in TEST_P()
510 cxxMemberCallExpr(thisPointerType(recordDecl(hasName("Y")))))))); in TEST_P()
1372 initListExpr(hasType(recordDecl(hasName("B")))))); in TEST_P()
1582 varDecl(hasType(recordDecl(hasName("X")))))); in TEST_P()
1813 recordType(hasDeclaration(recordDecl(hasName("S")))))); in TEST_P()
1815 recordType(hasDeclaration(recordDecl(hasName("S")))))); in TEST_P()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DSpuriouslyWakeUpFunctionsCheck.cpp22 hasDeclaration(varDecl(hasType(recordDecl(classTemplateSpecializationDecl( in registerMatchers()
35 declRefExpr(to(varDecl(hasType(references(recordDecl( in registerMatchers()
42 declRefExpr(to(varDecl(hasType(references(recordDecl( in registerMatchers()
49 declRefExpr(to(varDecl(hasType(references(recordDecl( in registerMatchers()
DDanglingHandleCheck.cpp78 recordType(hasDeclaration(recordDecl(isASequence())))))))), in makeContainerMatcher()
82 recordType(hasDeclaration(recordDecl( in makeContainerMatcher()
163 recordType(hasDeclaration(recordDecl( in registerMatchersForReturn()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DRedundantSmartptrGetCheck.cpp34 return recordDecl(hasAnyName("::std::unique_ptr", "::std::shared_ptr")); in knownSmartptr()
39 const auto QuacksLikeASmartptr = recordDecl( in registerMatchersForGetArrowStart()
40 recordDecl().bind("duck_typing"), in registerMatchersForGetArrowStart()
62 recordDecl(Smartptr, has(cxxConversionDecl(returns(booleanType())))))); in registerMatchersForGetArrowStart()
DRedundantMemberInitCheck.cpp46 unless(forField(hasParent(recordDecl(isUnion()))))) in registerMatchers()
/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()
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/
DFasterStrsplitDelimiterCheck.cpp67 cxxConstructExpr(hasType(recordDecl(hasName("::absl::string_view"))), in registerMatchers()
75 hasType(recordDecl(hasName("::absl::ByAnyChar"))), in registerMatchers()
/external/llvm-project/clang/unittests/ASTMatchers/Dynamic/
DVariantValueTest.cpp56 Value = VariantMatcher::SingleMatcher(recordDecl()); in TEST()
83 Value = VariantMatcher::SingleMatcher(recordDecl()); in TEST()
150 recordDecl(hasName("X")))) in TEST()
/external/llvm-project/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/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/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DProTypeUnionAccessCheck.cpp21 memberExpr(hasObjectExpression(hasType(recordDecl(isUnion())))) in registerMatchers()
DInterfacesGlobalInitCheck.cpp24 recordDecl())), // Class scope. in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/android/
DCloexecAccept4Check.cpp22 hasType(pointsTo(recordDecl(isStruct(), hasName("sockaddr")))); in registerMatchers()
DCloexecAcceptCheck.cpp21 hasType(pointsTo(recordDecl(isStruct(), hasName("sockaddr")))); in registerMatchers()
/external/clang/unittests/AST/
DASTContextParentMapTest.cpp28 cxxMethodDecl(hasParent(recordDecl(hasName("C")))))); in TEST()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DAvoidCArraysCheck.cpp51 hasParent(recordDecl(isExternCContext())))), in registerMatchers()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DPointerIterationChecker.cpp69 recordDecl(hasName("std::unordered_set") in matchUnorderedIterWithPointers()
/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DUnconventionalAssignOperatorCheck.cpp30 hasName("operator="), ofClass(recordDecl().bind("class"))) in registerMatchers()

12