/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersNarrowingTest.cpp | 35 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 …]
|
D | ASTMatchersInternalTest.cpp | 25 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 …]
|
D | ASTMatchersTraversalTest.cpp | 36 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 …]
|
D | ASTMatchersNodeTest.cpp | 84 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/ |
D | ASTMatchersNarrowingTest.cpp | 173 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 …]
|
D | ASTMatchersInternalTest.cpp | 26 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 …]
|
D | ASTMatchersTraversalTest.cpp | 35 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 …]
|
D | ASTMatchersNodeTest.cpp | 103 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/ |
D | SpuriouslyWakeUpFunctionsCheck.cpp | 22 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()
|
D | DanglingHandleCheck.cpp | 78 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/ |
D | RedundantSmartptrGetCheck.cpp | 34 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()
|
D | RedundantMemberInitCheck.cpp | 46 unless(forField(hasParent(recordDecl(isUnion()))))) in registerMatchers()
|
/external/clang/unittests/ASTMatchers/Dynamic/ |
D | VariantValueTest.cpp | 57 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/ |
D | FasterStrsplitDelimiterCheck.cpp | 67 cxxConstructExpr(hasType(recordDecl(hasName("::absl::string_view"))), in registerMatchers() 75 hasType(recordDecl(hasName("::absl::ByAnyChar"))), in registerMatchers()
|
/external/llvm-project/clang/unittests/ASTMatchers/Dynamic/ |
D | VariantValueTest.cpp | 56 Value = VariantMatcher::SingleMatcher(recordDecl()); in TEST() 83 Value = VariantMatcher::SingleMatcher(recordDecl()); in TEST() 150 recordDecl(hasName("X")))) in TEST()
|
/external/llvm-project/clang/docs/ |
D | LibASTMatchers.rst | 30 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/ |
D | LibASTMatchers.rst | 30 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/ |
D | ProTypeUnionAccessCheck.cpp | 21 memberExpr(hasObjectExpression(hasType(recordDecl(isUnion())))) in registerMatchers()
|
D | InterfacesGlobalInitCheck.cpp | 24 recordDecl())), // Class scope. in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/android/ |
D | CloexecAccept4Check.cpp | 22 hasType(pointsTo(recordDecl(isStruct(), hasName("sockaddr")))); in registerMatchers()
|
D | CloexecAcceptCheck.cpp | 21 hasType(pointsTo(recordDecl(isStruct(), hasName("sockaddr")))); in registerMatchers()
|
/external/clang/unittests/AST/ |
D | ASTContextParentMapTest.cpp | 28 cxxMethodDecl(hasParent(recordDecl(hasName("C")))))); in TEST()
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | AvoidCArraysCheck.cpp | 51 hasParent(recordDecl(isExternCContext())))), in registerMatchers()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | PointerIterationChecker.cpp | 69 recordDecl(hasName("std::unordered_set") in matchUnorderedIterWithPointers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/misc/ |
D | UnconventionalAssignOperatorCheck.cpp | 30 hasName("operator="), ofClass(recordDecl().bind("class"))) in registerMatchers()
|