Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DRecordOps.cpp62 (SrcDecl->isDerivedFrom(DstDecl) || DstDecl->isDerivedFrom(SrcDecl))); in copyRecord()
73 SrcDecl->isDerivedFrom(DstDecl))) { in copyRecord()
H A DTransfer.cpp607 if (!DstDecl->isDerivedFrom(ReturnDecl)) in VisitCXXOperatorCallExpr()
/freebsd/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.cpp122 if (!DerivedClass->isDerivedFrom(BaseClass)) in checkTypedDeleteExpr()
152 if (!DerivedClass->isDerivedFrom(BaseClass)) in checkTypedDeleteExpr()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DMemoryUnsafeCastChecker.cpp107 hasTypePointingTo(cxxRecordDecl(isDerivedFrom(equalsBoundNode(BaseNode))) in checkASTCodeBody()
115 objcInterfaceDecl(isDerivedFrom(equalsBoundNode(BaseNode))) in checkASTCodeBody()
121 decl(cxxRecordDecl(isDerivedFrom(equalsBoundNode(BaseNode))) in checkASTCodeBody()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DCXXInheritance.cpp65 bool CXXRecordDecl::isDerivedFrom(const CXXRecordDecl *Base) const { in isDerivedFrom() function in CXXRecordDecl
68 return isDerivedFrom(Base, Paths); in isDerivedFrom()
71 bool CXXRecordDecl::isDerivedFrom(const CXXRecordDecl *Base, in isDerivedFrom() function in CXXRecordDecl
H A DExprCXX.cpp846 assert(!SrcRD->isDerivedFrom(DestRD) && in isAlwaysNull()
851 if (DestRD->isEffectivelyFinal() && !DestRD->isDerivedFrom(SrcRD)) in isAlwaysNull()
H A DVTableBuilder.cpp264 if (!DerivedRD->isDerivedFrom(BaseRD, Paths)) in ComputeBaseOffset()
1253 if (!DerivedRD->isDerivedFrom(BaseRD, Paths)) in ComputeThisAdjustmentBaseOffset()
H A DExprConstant.cpp3344 if (!DerivedRD->isDerivedFrom(BaseRD, Paths)) in CastToBaseClass()
6316 DynType->Type->isDerivedFrom(C))) in HandleDynamicCast()
6352 if (DynType->Type->isDerivedFrom(C, Paths) && !Paths.isAmbiguous(CQT) && in HandleDynamicCast()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DStore.cpp346 if (MRClass->isDerivedFrom(TargetClass, Paths)) in evalBaseToDerived()
387 if (TargetClass && SourceClass && TargetClass->isDerivedFrom(SourceClass)) in evalBaseToDerived()
H A DExprEngineCallAndReturn.cpp149 if (ActualClass->isDerivedFrom(ExpectedClass, Paths) && in adjustReturnValue()
H A DCallEvent.cpp797 assert(!RD->isDerivedFrom(MD->getParent()) && "Couldn't find known method"); in getRuntimeDefinition()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DContext.cpp391 if (Base == StaticDecl || Base->isDerivedFrom(StaticDecl)) { in getOverridingFunction()
565 if (BaseDecl == FinalDecl || BaseDecl->isDerivedFrom(FinalDecl)) { in collectBaseOffset()
H A DInterp.cpp1613 if (Func->getParentDecl()->isDerivedFrom(ThisFieldDecl)) { in CallVirt()
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h3363 isDerivedFrom, in AST_POLYMORPHIC_MATCHER_P() argument
3378 isDerivedFrom,
3384 const auto M = isDerivedFrom(hasName(BaseName));
3439 const auto M = anyOf(Base, isDerivedFrom(Base));
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp110 REGISTER_OVERLOADED_2(isDerivedFrom); in RegistryMaps()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclCXX.h1589 bool isDerivedFrom(const CXXRecordDecl *Base) const;
1607 bool isDerivedFrom(const CXXRecordDecl *Base, CXXBasePaths &Paths) const;
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCast.cpp1075 if (SrcRD->isDerivedFrom(DestRD, BasePaths)) in DiagnoseReinterpretUpDownCast()
1077 else if (DestRD->isDerivedFrom(SrcRD, BasePaths)) in DiagnoseReinterpretUpDownCast()
H A DSemaAccess.cpp955 bool isDerived = Derived->isDerivedFrom(const_cast<CXXRecordDecl*>(Base), in FindBestPath()
H A DSemaTypeTraits.cpp1633 ->isDerivedFrom(cast<CXXRecordDecl>(lhsRecord->getDecl())); in BuiltinIsBaseOf()
H A DSemaCodeComplete.cpp1313 CurrentClassScope->isDerivedFrom(Method->getParent())); in canCxxMethodBeCalled()
1325 MaybeDerived == MaybeBase || MaybeDerived->isDerivedFrom(MaybeBase); in canCxxMethodBeCalled()
1772 !NamingClass->isDerivedFrom(Cls)) { in IsAccessible()
H A DSemaLookup.cpp5569 if (!CurRD || (CurRD != RD && !CurRD->isDerivedFrom(RD))) in ValidateCandidate()
H A DSemaOverload.cpp10989 if (Cand1Class->isDerivedFrom(Cand2Class)) in isBetterOverloadCandidate()
10991 if (Cand2Class->isDerivedFrom(Cand1Class)) in isBetterOverloadCandidate()
H A DSemaDeclCXX.cpp3009 = Class->isDerivedFrom(CanonicalBase->getAsCXXRecordDecl(), Paths); in AttachBaseSpecifiers()
3057 return Derived->isDerivedFrom(Base, Paths); in IsDerivedFrom()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DItaniumCXXABI.cpp1544 if (!Dst->isDerivedFrom(Src, Paths)) in computeOffsetHint()
1695 (void)DestDecl->isDerivedFrom(SrcDecl, Paths); in emitExactDynamicCast()

12