Home
last modified time | relevance | path

Searched refs:cxxRecordDecl (Results 1 – 25 of 88) sorted by relevance

1234

/external/clang/unittests/AST/
DASTContextParentMapTest.cpp56 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/
DASTMatchersNarrowingTest.cpp293 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 …]
DASTMatchersTraversalTest.cpp23 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/
DASTContextParentMapTest.cpp58 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()
DASTImporterTest.cpp339 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 …]
DStructuralEquivalenceTest.cpp281 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/
DUnhandledSelfAssignmentCheck.cpp54 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()
DDanglingHandleCheck.cpp30 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()
DForwardDeclarationNamespaceCheck.cpp31 decl(anyOf(cxxRecordDecl(isExplicitTemplateSpecialization()), in registerMatchers()
34 cxxRecordDecl( in registerMatchers()
36 unless(isImplicit()), unless(hasAncestor(cxxRecordDecl())), in registerMatchers()
DUndelegatedConstructorCheck.cpp61 ofClass(cxxRecordDecl().bind("parent")))), in registerMatchers()
65 cxxRecordDecl(baseOfBoundNode("parent")))))) in registerMatchers()
DSizeofContainerCheck.cpp23 expr(hasType(hasCanonicalType(hasDeclaration(cxxRecordDecl( in registerMatchers()
DThrowKeywordMissingCheck.cpp26 hasType(cxxRecordDecl( in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/google/
DUpgradeGoogletestCaseCheck.cpp144 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/
DASTMatchersNarrowingTest.cpp155 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 …]
DASTMatchersTraversalTest.cpp24 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/
DUpgradeDurationConversionsCheck.cpp36 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/
DTemporaryObjectsCheck.cpp33 cxxRecordDecl(matchesAnyName(Names)))))) in registerMatchers()
42 cxxRecordDecl(matchesAnyName(Names)))))) in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DNonPrivateMemberVariablesInClassesCheck.cpp31 return cxxRecordDecl(has(fieldDecl(unless(isPublic())))) in AST_MATCHER()
78 Finder->addMatcher(cxxRecordDecl(anyOf(isStruct(), isClass()), hasMethods(), in registerMatchers()
DUniqueptrResetReleaseCheck.cpp25 ofClass(cxxRecordDecl(hasName("::std::unique_ptr"), in registerMatchers()
32 ofClass(cxxRecordDecl(hasName("::std::unique_ptr"), in registerMatchers()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DOSObjectCStyleCast.cpp69 auto OSObjTypeM = hasTypePointingTo(cxxRecordDecl(isDerivedFrom("OSMetaClassBase"))); in checkASTCodeBody()
71 cxxRecordDecl(isDerivedFrom("OSObject"))); in checkASTCodeBody()
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DSlicingCheck.cpp38 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/
DInefficientVectorOperationCheck.cpp66 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/
DVirtualInheritanceCheck.cpp31 Finder->addMatcher(cxxRecordDecl(hasDirectVirtualBaseClass()).bind("decl"), in registerMatchers()
DTrailingReturnCheck.cpp33 hasParent(cxxRecordDecl(isLambda()))))) in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/cert/
DDontModifyStdNamespaceCheck.cpp25 cxxRecordDecl(isExplicitTemplateSpecialization())))))) in registerMatchers()

1234