Home
last modified time | relevance | path

Searched refs:isDerivedFrom (Results 1 – 25 of 27) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/DumpTool/
H A DASTSrcLocProcessor.cpp36 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()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DOSObjectCStyleCast.cpp101 hasTypePointingTo(cxxRecordDecl(isDerivedFrom("OSMetaClassBase"))); in checkASTCodeBody()
103 cxxRecordDecl(isDerivedFrom("OSObject")).bind(WarnRecordDecl)); in checkASTCodeBody()
H A DCXXDeleteChecker.cpp126 if (!DerivedClass->isDerivedFrom(BaseClass)) in checkTypedDeleteExpr()
156 if (!DerivedClass->isDerivedFrom(BaseClass)) in checkTypedDeleteExpr()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DCXXInheritance.cpp67 bool CXXRecordDecl::isDerivedFrom(const CXXRecordDecl *Base) const { in isDerivedFrom() function in CXXRecordDecl
70 return isDerivedFrom(Base, Paths); in isDerivedFrom()
73 bool CXXRecordDecl::isDerivedFrom(const CXXRecordDecl *Base, in isDerivedFrom() function in CXXRecordDecl
H A DExprCXX.cpp791 assert(!SrcRD->isDerivedFrom(DestRD) && in isAlwaysNull()
796 if (DestRD->isEffectivelyFinal() && !DestRD->isDerivedFrom(SrcRD)) in isAlwaysNull()
H A DVTableBuilder.cpp264 if (!DerivedRD->isDerivedFrom(BaseRD, Paths)) in ComputeBaseOffset()
1222 if (!DerivedRD->isDerivedFrom(BaseRD, Paths)) in ComputeThisAdjustmentBaseOffset()
H A DExprConstant.cpp3170 if (!DerivedRD->isDerivedFrom(BaseRD, Paths)) in CastToBaseClass()
5962 DynType->Type->isDerivedFrom(C))) in HandleDynamicCast()
5998 if (DynType->Type->isDerivedFrom(C, Paths) && !Paths.isAmbiguous(CQT) && in HandleDynamicCast()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DRecordOps.cpp27 (SrcDecl && DstDecl && SrcDecl->isDerivedFrom(DstDecl)); in copyRecord()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DStore.cpp344 if (MRClass->isDerivedFrom(TargetClass, Paths)) in evalBaseToDerived()
385 if (TargetClass && SourceClass && TargetClass->isDerivedFrom(SourceClass)) in evalBaseToDerived()
H A DExprEngineCallAndReturn.cpp153 if (ActualClass->isDerivedFrom(ExpectedClass, Paths) && in adjustReturnValue()
H A DCallEvent.cpp786 assert(!RD->isDerivedFrom(MD->getParent()) && "Couldn't find known method"); in getRuntimeDefinition()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DContext.cpp259 if (Base == StaticDecl || Base->isDerivedFrom(StaticDecl)) { in getOverridingFunction()
H A DByteCodeExprGen.cpp2929 if (BaseDecl == FinalDecl || BaseDecl->isDerivedFrom(FinalDecl)) { in collectBaseOffset()
H A DInterp.h1942 if (Func->getParentDecl()->isDerivedFrom(ThisFieldDecl)) { in CallVirt()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h3269 isDerivedFrom, in AST_POLYMORPHIC_MATCHER_P() argument
3284 isDerivedFrom,
3290 const auto M = isDerivedFrom(hasName(BaseName));
3345 const auto M = anyOf(Base, isDerivedFrom(Base));
/freebsd-14.2/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp112 REGISTER_OVERLOADED_2(isDerivedFrom); in RegistryMaps()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DDeclCXX.h1573 bool isDerivedFrom(const CXXRecordDecl *Base) const;
1591 bool isDerivedFrom(const CXXRecordDecl *Base, CXXBasePaths &Paths) const;
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaCast.cpp1017 if (SrcRD->isDerivedFrom(DestRD, BasePaths)) in DiagnoseReinterpretUpDownCast()
1019 else if (DestRD->isDerivedFrom(SrcRD, BasePaths)) in DiagnoseReinterpretUpDownCast()
H A DSemaAccess.cpp959 bool isDerived = Derived->isDerivedFrom(const_cast<CXXRecordDecl*>(Base), in FindBestPath()
H A DSemaCodeComplete.cpp1305 CurrentClassScope->isDerivedFrom(Method->getParent())); in canCxxMethodBeCalled()
1317 MaybeDerived == MaybeBase || MaybeDerived->isDerivedFrom(MaybeBase); in canCxxMethodBeCalled()
1763 !NamingClass->isDerivedFrom(Cls)) { in IsAccessible()
H A DSemaLookup.cpp5645 if (!CurRD || (CurRD != RD && !CurRD->isDerivedFrom(RD))) in ValidateCandidate()
H A DSemaDeclCXX.cpp2996 = Class->isDerivedFrom(CanonicalBase->getAsCXXRecordDecl(), Paths); in AttachBaseSpecifiers()
3052 return DerivedRD->isDerivedFrom(BaseRD); in IsDerivedFrom()
3073 return DerivedRD->isDerivedFrom(BaseRD, Paths); in IsDerivedFrom()
H A DSemaOverload.cpp10490 if (Cand1Class->isDerivedFrom(Cand2Class)) in isBetterOverloadCandidate()
10492 if (Cand2Class->isDerivedFrom(Cand1Class)) in isBetterOverloadCandidate()
H A DSemaExprCXX.cpp5770 ->isDerivedFrom(cast<CXXRecordDecl>(lhsRecord->getDecl())); in EvaluateBinaryTypeTrait()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DItaniumCXXABI.cpp1376 if (!Dst->isDerivedFrom(Src, Paths)) in computeOffsetHint()
1515 (void)DestDecl->isDerivedFrom(SrcDecl, Paths); in emitExactDynamicCast()

12