Home
last modified time | relevance | path

Searched refs:IsDerivedFrom (Results 1 – 12 of 12) sorted by relevance

/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaFixItUtils.cpp44 if ((FromUnq == ToUnq || (S.IsDerivedFrom(Loc, FromUnq, ToUnq)) ) && in compareTypesSimple()
H A DSemaOverload.cpp4085 if (S.IsDerivedFrom(Loc, FromPointee2, FromPointee1)) in CompareStandardConversionSequences()
4337 if (S.IsDerivedFrom(Loc, ToPointee1, ToPointee2)) in CompareDerivedToBaseConversions()
4345 if (S.IsDerivedFrom(Loc, FromPointee2, FromPointee1)) in CompareDerivedToBaseConversions()
4454 if (S.IsDerivedFrom(Loc, ToPointee1, ToPointee2)) in CompareDerivedToBaseConversions()
4461 if (S.IsDerivedFrom(Loc, FromPointee1, FromPointee2)) in CompareDerivedToBaseConversions()
4475 if (S.IsDerivedFrom(Loc, ToType1, ToType2)) in CompareDerivedToBaseConversions()
4477 else if (S.IsDerivedFrom(Loc, ToType2, ToType1)) in CompareDerivedToBaseConversions()
4487 if (S.IsDerivedFrom(Loc, FromType2, FromType1)) in CompareDerivedToBaseConversions()
4489 else if (S.IsDerivedFrom(Loc, FromType1, FromType2)) in CompareDerivedToBaseConversions()
4556 IsDerivedFrom(Loc, UnqualT2, UnqualT1)) in CompareReferenceRelationship()
[all …]
H A DSemaCast.cpp872 Self.IsDerivedFrom(OpRange.getBegin(), SrcPointee, DestPointee)) { in CheckDynamicCast()
1514 if (!Self.IsDerivedFrom(SrcExpr->getBeginLoc(), SrcExpr->getType(), in TryLValueToRValueCast()
1615 if (!Self.IsDerivedFrom(OpRange.getBegin(), DestType, SrcType, Paths)) { in TryStaticDowncast()
1651 Self.IsDerivedFrom(OpRange.getBegin(), DestType, SrcType, Paths); in TryStaticDowncast()
1756 if (!Self.IsDerivedFrom(OpRange.getBegin(), SrcClass, DestClass, Paths)) in TryStaticMemberPointerUpcast()
1764 Self.IsDerivedFrom(OpRange.getBegin(), SrcClass, DestClass, Paths); in TryStaticMemberPointerUpcast()
H A DSemaExprCXX.cpp5878 if (!IsDerivedFrom(Loc, LHSType, Class)) { in CheckPointerToMemberOperands()
6018 Self.IsDerivedFrom(QuestionLoc, FTy, TTy); in TryClassUnification()
6020 Self.IsDerivedFrom(QuestionLoc, TTy, FTy))) { in TryClassUnification()
6981 Class = IsDerivedFrom(Loc, Cls1, Cls2) ? MemPtr1->getClass() : in FindCompositePointerType()
6982 IsDerivedFrom(Loc, Cls2, Cls1) ? MemPtr2->getClass() : nullptr; in FindCompositePointerType()
7079 else if (IsDerivedFrom(Loc, Composite1, Composite2)) in FindCompositePointerType()
7081 else if (IsDerivedFrom(Loc, Composite2, Composite1)) in FindCompositePointerType()
H A DSemaExceptionSpec.cpp742 if (!IsDerivedFrom(SourceLocation(), ExceptionType, HandlerType, Paths) || in handlerCanCatch()
H A DSemaDeclCXX.cpp2846 bool Sema::IsDerivedFrom(SourceLocation Loc, QualType Derived, QualType Base) { in IsDerivedFrom() function in Sema
2873 bool Sema::IsDerivedFrom(SourceLocation Loc, QualType Derived, QualType Base, in IsDerivedFrom() function in Sema
2943 bool DerivationOkay = IsDerivedFrom(Loc, Derived, Base, Paths); in CheckDerivedToBaseConversion()
2995 bool StillOkay = IsDerivedFrom(Loc, Derived, Base, Paths); in CheckDerivedToBaseConversion()
4112 if (SemaRef.IsDerivedFrom(ClassDecl->getLocation(), in FindBaseInitializer()
10920 else if (IsDerivedFrom(Conversion->getLocation(), ClassType, ConvType)) in ActOnConversionDeclarator()
17538 if (!IsDerivedFrom(New->getLocation(), NewClassTy, OldClassTy)) { in CheckOverridingFunctionReturnType()
H A DSemaInit.cpp4426 S.IsDerivedFrom(InitList->getBeginLoc(), InitType, DestType)) { in TryListInitialization()
5955 S.IsDerivedFrom(Initializer->getBeginLoc(), SourceType, DestType)))) in InitializeFrom()
6020 S.IsDerivedFrom(Initializer->getBeginLoc(), SourceType, in InitializeFrom()
H A DSemaTemplateDeduction.cpp3387 S.IsDerivedFrom(Info.getLocation(), A, DeducedA)) in CheckOriginalCallArgDeduction()
H A DSemaOpenMP.cpp18594 SemaRef.IsDerivedFrom(Loc, Ty, D->getType()) && in buildDeclareReductionRef()
18601 if (SemaRef.IsDerivedFrom(Loc, Ty, VD->getType(), Paths)) { in buildDeclareReductionRef()
21346 SemaRef.IsDerivedFrom(Loc, Type, D->getType()) && in buildUserDefinedMapperRef()
21353 if (SemaRef.IsDerivedFrom(Loc, Type, VD->getType(), Paths)) { in buildUserDefinedMapperRef()
H A DSemaExpr.cpp3101 if (IsDerivedFrom(FromLoc, FromRecordType, QRecordType)) { in PerformObjectMemberConversion()
16074 if (IsDerivedFrom(OC.LocStart, CurrentType, Context.getTypeDeclType(Parent), in BuildBuiltinOffsetOf()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersNarrowingTest.cpp909 TEST_P(ASTMatchersTest, IsDerivedFrom) { in TEST_P() argument
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h7544 bool IsDerivedFrom(SourceLocation Loc, QualType Derived, QualType Base);
7545 bool IsDerivedFrom(SourceLocation Loc, QualType Derived, QualType Base,