| /llvm-project-15.0.7/clang/lib/Tooling/DumpTool/ |
| H A D | ASTSrcLocProcessor.cpp | 36 optionally(isDerivedFrom(cxxRecordDecl().bind("derivedFrom")))) in ASTSrcLocProcessor() 156 optionally(isDerivedFrom( in CaptureMethods() 159 optionally(isDerivedFrom( in CaptureMethods() 162 isDerivedFrom(cxxRecordDecl(hasName("clang::TypeLoc")) in CaptureMethods()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | OSObjectCStyleCast.cpp | 101 hasTypePointingTo(cxxRecordDecl(isDerivedFrom("OSMetaClassBase"))); in checkASTCodeBody() 103 cxxRecordDecl(isDerivedFrom("OSObject")).bind(WarnRecordDecl)); in checkASTCodeBody()
|
| H A D | DeleteWithNonVirtualDtorChecker.cpp | 85 if (!DerivedClass->isDerivedFrom(BaseClass)) in checkPreStmt()
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersNarrowingTest.cpp | 293 cxxRecordDecl(isDerivedFrom("Y"), unless(hasName("X"))); in TEST_P() 437 anyOf(hasName("Y"), allOf(isDerivedFrom("X"), hasName("Z")))); in TEST_P() 914 DeclarationMatcher IsDerivedFromX = cxxRecordDecl(isDerivedFrom("X")); in TEST_P() 927 cxxRecordDecl(hasName("Z"), isDerivedFrom("X")); in TEST_P() 953 cxxRecordDecl(hasName("Z"), isDerivedFrom("X")); in TEST_P() 1118 isDerivedFrom("Base1"), isDerivedFrom("Base2"))))))); in TEST_P() 1143 isDerivedFrom("Base1"), isDerivedFrom("Base2"))))))); in TEST_P() 1145 cxxRecordDecl(isDerivedFrom("::ns::X")))); in TEST_P() 1147 cxxRecordDecl(isDerivedFrom("::ns::X")))); in TEST_P() 1165 EXPECT_TRUE(notMatches(Code, cxxRecordDecl(isDerivedFrom("")))); in TEST_P() [all …]
|
| H A D | ASTMatchersTraversalTest.cpp | 37 cxxRecordDecl(hasName("B"), isDerivedFrom(recordDecl())))); in TEST() 155 hasDeclaration(cxxRecordDecl(isDerivedFrom("A"))); in TEST() 5116 cxxRecordDecl(decl().bind("x"), isDerivedFrom("::A")), in TEST() 5121 cxxRecordDecl(decl().bind("x"), isDerivedFrom("C")), in TEST()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/objc/ |
| H A D | ForbiddenSubclassingCheck.cpp | 54 isDerivedFrom(objcInterfaceDecl(hasAnyName(ForbiddenSuperClassNames)) in registerMatchers()
|
| H A D | SuperSelfCheck.cpp | 82 isDerivedFrom(hasName("NSObject")))))))) in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | UndelegatedConstructorCheck.cpp | 45 return Derived != &Node && !Derived->isDerivedFrom(&Node); in AST_MATCHER_P()
|
| H A D | ParentVirtualCallCheck.cpp | 55 if (RecordDeclType->getCanonicalDecl()->isDerivedFrom(&GrandParent)) in getParentsByGrandParent()
|
| H A D | VirtualNearMissCheck.cpp | 88 if (!DRD->isDerivedFrom(BRD, Paths)) in checkOverridingFunctionReturnType()
|
| H A D | EasilySwappableParametersCheck.cpp | 952 Base->isCompleteDefinition() && Derived->isDerivedFrom(Base); in isDerivedToBase()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | SlicingCheck.cpp | 40 cxxRecordDecl(isDerivedFrom(equalsBoundNode("BaseDecl"))) in registerMatchers()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | CXXInheritance.cpp | 68 bool CXXRecordDecl::isDerivedFrom(const CXXRecordDecl *Base) const { in isDerivedFrom() function in CXXRecordDecl 71 return isDerivedFrom(Base, Paths); in isDerivedFrom() 74 bool CXXRecordDecl::isDerivedFrom(const CXXRecordDecl *Base, in isDerivedFrom() function in CXXRecordDecl
|
| H A D | VTableBuilder.cpp | 264 if (!DerivedRD->isDerivedFrom(BaseRD, Paths)) in ComputeBaseOffset() 1217 if (!DerivedRD->isDerivedFrom(BaseRD, Paths)) in ComputeThisAdjustmentBaseOffset()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | Store.cpp | 344 if (MRClass->isDerivedFrom(TargetClass, Paths)) in evalBaseToDerived() 385 if (TargetClass && SourceClass && TargetClass->isDerivedFrom(SourceClass)) in evalBaseToDerived()
|
| H A D | ExprEngineCallAndReturn.cpp | 152 if (ActualClass->isDerivedFrom(ExpectedClass, Paths) && in adjustReturnValue()
|
| H A D | CallEvent.cpp | 723 assert(!RD->isDerivedFrom(MD->getParent()) && "Couldn't find known method"); in getRuntimeDefinition()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | InefficientVectorOperationCheck.cpp | 170 cxxRecordDecl(isDerivedFrom("::proto2::MessageLite")); in registerMatchers()
|
| /llvm-project-15.0.7/clang/docs/ |
| H A D | LibASTMatchers.rst | 39 "``Bar``": ``recordDecl(hasName("Foo"), isDerivedFrom("Bar"))``.
|
| /llvm-project-15.0.7/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchers.h | 3191 isDerivedFrom, in AST_POLYMORPHIC_MATCHER_P() argument 3206 isDerivedFrom, 3212 const auto M = isDerivedFrom(hasName(BaseName)); 3267 const auto M = anyOf(Base, isDerivedFrom(Base));
|
| /llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/ |
| H A D | Registry.cpp | 112 REGISTER_OVERLOADED_2(isDerivedFrom); in RegistryMaps()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | SuspiciousCallArgumentCheck.cpp | 468 return ArgDecl->isDerivedFrom(ParamDecl); in areTypesCompatible()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | DeclCXX.h | 1536 bool isDerivedFrom(const CXXRecordDecl *Base) const; 1554 bool isDerivedFrom(const CXXRecordDecl *Base, CXXBasePaths &Paths) const;
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaCast.cpp | 985 if (SrcRD->isDerivedFrom(DestRD, BasePaths)) in DiagnoseReinterpretUpDownCast() 987 else if (DestRD->isDerivedFrom(SrcRD, BasePaths)) in DiagnoseReinterpretUpDownCast()
|
| H A D | SemaAccess.cpp | 949 bool isDerived = Derived->isDerivedFrom(const_cast<CXXRecordDecl*>(Base), in FindBestPath()
|