/external/clang/unittests/AST/ |
D | ASTContextParentMapTest.cpp | 56 hasParent(cxxRecordDecl(isTemplateInstantiation()))))); in TEST() 61 hasParent(cxxRecordDecl(unless(isTemplateInstantiation())))))); in TEST() 67 allOf(hasParent(cxxRecordDecl(unless(isTemplateInstantiation()))), in TEST() 68 hasParent(cxxRecordDecl(isTemplateInstantiation())))))); in TEST() 77 hasAncestor(cxxRecordDecl(isTemplateInstantiation())), in TEST() 78 hasAncestor(cxxRecordDecl(unless(isTemplateInstantiation()))))))); in TEST()
|
/external/llvm-project/clang/unittests/ASTMatchers/ |
D | ASTMatchersNarrowingTest.cpp | 293 cxxRecordDecl(isDerivedFrom("Y"), unless(hasName("X"))); in TEST_P() 437 DeclarationMatcher YOrZDerivedFromX = cxxRecordDecl( in TEST_P() 474 DeclarationMatcher IsDerivedFromX = cxxRecordDecl(isDerivedFrom("X")); in TEST_P() 487 cxxRecordDecl(hasName("Z"), isDerivedFrom("X")); in TEST_P() 495 cxxRecordDecl(isDirectlyDerivedFrom("X")); in TEST_P() 504 DeclarationMatcher IsAX = cxxRecordDecl(isSameOrDerivedFrom("X")); in TEST_P() 513 cxxRecordDecl(hasName("Z"), isDerivedFrom("X")); in TEST_P() 515 cxxRecordDecl(hasName("Z"), isDirectlyDerivedFrom("X")); in TEST_P() 637 cxxRecordDecl(isDerivedFrom(recordDecl(hasName("Some")))))); in TEST_P() 644 cxxRecordDecl(hasName("B"), isDerivedFrom(recordDecl(hasName("A")))))); in TEST_P() [all …]
|
D | ASTMatchersTraversalTest.cpp | 23 cxxRecordDecl(hasMethod(hasName("func"))))); in TEST() 25 cxxRecordDecl(hasMethod(isPublic())))); in TEST() 35 cxxRecordDecl(hasName("B"), isDerivedFrom(recordDecl())))); in TEST() 153 hasDeclaration(cxxRecordDecl(isDerivedFrom("A"))); in TEST() 236 parmVarDecl(hasType(qualType(hasDeclaration(cxxRecordDecl())))))); in TEST() 240 parmVarDecl(hasType(elaboratedType(hasDeclaration(cxxRecordDecl())))))); in TEST() 261 hasDeclaration(cxxRecordDecl())))))); in TEST() 561 auto MatchesY = cxxMemberCallExpr(on(hasType(cxxRecordDecl(hasName("Y"))))); in TEST() 565 auto MatchesX = cxxMemberCallExpr(on(hasType(cxxRecordDecl(hasName("X"))))); in TEST() 596 hasType(cxxRecordDecl(hasName("Y")))))); in TEST() [all …]
|
/external/llvm-project/clang/unittests/AST/ |
D | ASTContextParentMapTest.cpp | 58 hasParent(cxxRecordDecl(isTemplateInstantiation()))))); in TEST() 63 hasParent(cxxRecordDecl(unless(isTemplateInstantiation())))))); in TEST() 69 allOf(hasParent(cxxRecordDecl(unless(isTemplateInstantiation()))), in TEST() 70 hasParent(cxxRecordDecl(isTemplateInstantiation())))))); in TEST() 79 hasAncestor(cxxRecordDecl(isTemplateInstantiation())), in TEST() 80 hasAncestor(cxxRecordDecl(unless(isTemplateInstantiation()))))))); in TEST() 113 hasParent(cxxRecordDecl( in TEST()
|
D | ASTImporterTest.cpp | 339 cxxRecordDecl(hasMethod(hasDescendant( in TEST_P() 379 classTemplateDecl(hasTemplateDecl(cxxRecordDecl(hasMethod(allOf( in TEST_P() 604 classTemplateDecl(has(cxxRecordDecl(has( in TEST_P() 681 classTemplateDecl(has(cxxRecordDecl(has( in TEST_P() 846 unless(has(cxxRecordDecl(hasName("declToImport")))))))); in TEST_P() 870 cxxRecordDecl(has(cxxMethodDecl(hasDescendant(cxxOperatorCallExpr()))))); in TEST_P() 879 classTemplateDecl(has(cxxRecordDecl( in TEST_P() 1280 ASSERT_TRUE(Verifier.match(From, cxxRecordDecl(hasFieldOrder({"a", "b"})))); in TEST_P() 1281 EXPECT_TRUE(Verifier.match(To, cxxRecordDecl(hasFieldOrder({"a", "b"})))); in TEST_P() 1301 Verifier.match(From, cxxRecordDecl(hasFieldOrder({"a", "b", "c"})))); in TEST_P() [all …]
|
D | StructuralEquivalenceTest.cpp | 281 get<1>(Decls), cxxRecordDecl(hasName("X"))); in TEST_F() 613 cxxRecordDecl(hasName("A")), in TEST_F() 614 cxxRecordDecl(hasName("B"))); in TEST_F() 802 Lang_CXX03, cxxRecordDecl(hasName("A"))); in TEST_F() 1398 TU, cxxRecordDecl(hasName("A"), unless(isImplicit()))))); in TEST_F() 1400 TU, cxxRecordDecl(hasName("B"), unless(isImplicit()))))); in TEST_F() 1432 TU, cxxRecordDecl(hasName("C"), unless(isImplicit()))); in TEST_F() 1437 TU, cxxRecordDecl(hasName("A"), unless(isImplicit()))))); in TEST_F() 1439 TU, cxxRecordDecl(hasName("B"), unless(isImplicit()))))); in TEST_F() 1471 TU, cxxRecordDecl(hasName("C"), unless(isImplicit()))); in TEST_F() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | UnhandledSelfAssignmentCheck.cpp | 54 ofClass(cxxRecordDecl(unless(hasAncestor(classTemplateDecl())))), in registerMatchers() 63 ofClass(cxxRecordDecl(hasAncestor(classTemplateDecl()))), in registerMatchers() 65 varDecl(hasType(cxxRecordDecl(equalsBoundNode("class"))), in registerMatchers() 68 hasType(cxxRecordDecl(equalsBoundNode("class"))))))))); in registerMatchers() 90 AdditionalMatcher = cxxMethodDecl(ofClass(cxxRecordDecl( in registerMatchers() 95 Finder->addMatcher(cxxMethodDecl(ofClass(cxxRecordDecl().bind("class")), in registerMatchers()
|
D | DanglingHandleCheck.cpp | 30 cxxMemberCallExpr(hasType(cxxRecordDecl(IsAHandle)), in handleFrom() 97 IsAHandle(cxxRecordDecl(hasAnyName(std::vector<StringRef>( in DanglingHandleCheck() 112 recordType(hasDeclaration(cxxRecordDecl(IsAHandle))))), in registerMatchersForVariables() 122 hasDeclaration(cxxRecordDecl(IsAHandle))))), in registerMatchersForVariables()
|
D | ForwardDeclarationNamespaceCheck.cpp | 31 decl(anyOf(cxxRecordDecl(isExplicitTemplateSpecialization()), in registerMatchers() 34 cxxRecordDecl( in registerMatchers() 36 unless(isImplicit()), unless(hasAncestor(cxxRecordDecl())), in registerMatchers()
|
D | UndelegatedConstructorCheck.cpp | 61 ofClass(cxxRecordDecl().bind("parent")))), in registerMatchers() 65 cxxRecordDecl(baseOfBoundNode("parent")))))) in registerMatchers()
|
D | SizeofContainerCheck.cpp | 23 expr(hasType(hasCanonicalType(hasDeclaration(cxxRecordDecl( in registerMatchers()
|
D | ThrowKeywordMissingCheck.cpp | 26 hasType(cxxRecordDecl( in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/google/ |
D | UpgradeGoogletestCaseCheck.cpp | 144 cxxRecordDecl(isSameOrDerivedFrom(cxxRecordDecl( in registerMatchers() 151 cxxRecordDecl(isSameOrDerivedFrom(cxxRecordDecl( in registerMatchers() 157 ofClass(cxxRecordDecl( in registerMatchers() 158 isSameOrDerivedFrom(cxxRecordDecl( in registerMatchers() 166 ofClass(cxxRecordDecl( in registerMatchers() 167 isSameOrDerivedFrom(cxxRecordDecl( in registerMatchers() 241 return !match(cxxRecordDecl( in derivedTypeHasReplacementMethod()
|
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersNarrowingTest.cpp | 155 cxxRecordDecl( in TEST() 293 DeclarationMatcher YOrZDerivedFromX = cxxRecordDecl( in TEST() 327 DeclarationMatcher IsDerivedFromX = cxxRecordDecl(isDerivedFrom("X")); in TEST() 335 DeclarationMatcher IsAX = cxxRecordDecl(isSameOrDerivedFrom("X")); in TEST() 344 cxxRecordDecl(hasName("Z"), isDerivedFrom("X")); in TEST() 463 cxxRecordDecl(isDerivedFrom(recordDecl(hasName("Some")))))); in TEST() 470 cxxRecordDecl(hasName("B"), isDerivedFrom(recordDecl(hasName("A")))))); in TEST() 487 hasInitializer(hasType(cxxRecordDecl(isDerivedFrom("Base1"))))))); in TEST() 491 hasInitializer(hasType(cxxRecordDecl(isDerivedFrom("Base2"))))))); in TEST() 495 hasInitializer(hasType(cxxRecordDecl(isDerivedFrom("Base1"), in TEST() [all …]
|
D | ASTMatchersTraversalTest.cpp | 24 cxxRecordDecl(hasMethod(hasName("func"))))); in TEST() 26 cxxRecordDecl(hasMethod(isPublic())))); in TEST() 36 cxxRecordDecl(hasName("B"), isDerivedFrom(recordDecl())))); in TEST() 154 hasDeclaration(cxxRecordDecl(isDerivedFrom("A"))); in TEST() 1458 cxxRecordDecl(decl().bind("x"), hasMethod(hasName("g"))), in TEST() 1487 cxxRecordDecl(decl().bind("x"), isDerivedFrom("::A")), in TEST() 1492 cxxRecordDecl(decl().bind("x"), isDerivedFrom("C")), in TEST() 1654 hasAncestor(cxxRecordDecl(isTemplateInstantiation())), in TEST() 1655 hasAncestor(cxxRecordDecl(unless(isTemplateInstantiation()))))))); in TEST() 1712 hasParent(cxxRecordDecl(isTemplateInstantiation()))))))))); in TEST() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/ |
D | UpgradeDurationConversionsCheck.cpp | 36 0, expr(hasType(cxxRecordDecl(hasName("::absl::Duration"))))), in registerMatchers() 50 ofClass(cxxRecordDecl(hasName("::absl::Duration"))), in registerMatchers() 68 cxxRecordDecl(hasName("::absl::Duration"))))), in registerMatchers() 82 cxxRecordDecl(hasName("::absl::Duration")))))) in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/zircon/ |
D | TemporaryObjectsCheck.cpp | 33 cxxRecordDecl(matchesAnyName(Names)))))) in registerMatchers() 42 cxxRecordDecl(matchesAnyName(Names)))))) in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/misc/ |
D | NonPrivateMemberVariablesInClassesCheck.cpp | 31 return cxxRecordDecl(has(fieldDecl(unless(isPublic())))) in AST_MATCHER() 78 Finder->addMatcher(cxxRecordDecl(anyOf(isStruct(), isClass()), hasMethods(), in registerMatchers()
|
D | UniqueptrResetReleaseCheck.cpp | 25 ofClass(cxxRecordDecl(hasName("::std::unique_ptr"), in registerMatchers() 32 ofClass(cxxRecordDecl(hasName("::std::unique_ptr"), in registerMatchers()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | OSObjectCStyleCast.cpp | 69 auto OSObjTypeM = hasTypePointingTo(cxxRecordDecl(isDerivedFrom("OSMetaClassBase"))); in checkASTCodeBody() 71 cxxRecordDecl(isDerivedFrom("OSObject"))); in checkASTCodeBody()
|
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
D | SlicingCheck.cpp | 38 const auto OfBaseClass = ofClass(cxxRecordDecl().bind("BaseDecl")); in registerMatchers() 40 cxxRecordDecl(isDerivedFrom(equalsBoundNode("BaseDecl"))) in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/performance/ |
D | InefficientVectorOperationCheck.cpp | 66 return hasType(cxxRecordDecl(hasAnyName( in supportedContainerTypesMatcher() 155 const auto VectorDecl = cxxRecordDecl(hasAnyName(SmallVector<StringRef, 5>( in registerMatchers() 164 cxxRecordDecl(isDerivedFrom("::proto2::MessageLite")); in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/fuchsia/ |
D | VirtualInheritanceCheck.cpp | 31 Finder->addMatcher(cxxRecordDecl(hasDirectVirtualBaseClass()).bind("decl"), in registerMatchers()
|
D | TrailingReturnCheck.cpp | 33 hasParent(cxxRecordDecl(isLambda()))))) in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/cert/ |
D | DontModifyStdNamespaceCheck.cpp | 25 cxxRecordDecl(isExplicitTemplateSpecialization())))))) in registerMatchers()
|