| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaFixItUtils.cpp | 44 if ((FromUnq == ToUnq || (S.IsDerivedFrom(Loc, FromUnq, ToUnq)) ) && in compareTypesSimple()
|
| H A D | SemaOverload.cpp | 4085 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 D | SemaCast.cpp | 872 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 D | SemaExprCXX.cpp | 5878 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 D | SemaExceptionSpec.cpp | 742 if (!IsDerivedFrom(SourceLocation(), ExceptionType, HandlerType, Paths) || in handlerCanCatch()
|
| H A D | SemaDeclCXX.cpp | 2846 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 D | SemaInit.cpp | 4426 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 D | SemaTemplateDeduction.cpp | 3387 S.IsDerivedFrom(Info.getLocation(), A, DeducedA)) in CheckOriginalCallArgDeduction()
|
| H A D | SemaOpenMP.cpp | 18594 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 D | SemaExpr.cpp | 3101 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 D | ASTMatchersNarrowingTest.cpp | 909 TEST_P(ASTMatchersTest, IsDerivedFrom) { in TEST_P() argument
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | Sema.h | 7544 bool IsDerivedFrom(SourceLocation Loc, QualType Derived, QualType Base); 7545 bool IsDerivedFrom(SourceLocation Loc, QualType Derived, QualType Base,
|