Home
last modified time | relevance | path

Searched refs:hasSameType (Results 1 – 25 of 48) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaWasm.cpp120 if (!getASTContext().hasSameType(ElTy, TheCall->getArg(2)->getType())) in BuiltinWasmTableSet()
150 if (!getASTContext().hasSameType(ElTy, NewElemArg->getType())) { in BuiltinWasmTableGrow()
177 if (!getASTContext().hasSameType(ElTy, NewElemArg->getType())) { in BuiltinWasmTableFill()
205 if (!getASTContext().hasSameType(XElTy, YElTy)) { in BuiltinWasmTableCopy()
H A DSemaCXXScopeSpec.cpp127 if (Context.hasSameType(Injected, ContextType)) in computeDeclContext()
609 !Context.hasSameType( in BuildCXXNestedNameSpecifier()
H A DSemaExprCXX.cpp623 if (!Context.hasSameType(T, UnqualT)) { in BuildCXXTypeId()
2916 if (Context.hasSameType(adjustCCAndNoReturn(Fn->getType(), in FindAllocationFunctions()
4350 if (Context.hasSameType(FromType, Context.OverloadTy)) { in PerformImplicitConversion()
4908 assert(Context.hasSameType( in PerformImplicitConversion()
6032 return Self.Context.hasSameType(LhsT, RhsT); in EvaluateBinaryTypeTrait()
6673 if (!Context.hasSameType(LHSType, RHSType)) { in CheckVectorConditionalTypes()
6692 Context.hasSameType(LHSType, RHSType) in CheckVectorConditionalTypes()
6760 if (!Context.hasSameType(LHSType, RHSType)) { in CheckSizelessVectorConditionalTypes()
6777 if (Context.hasSameType(LHSType, RHSType)) in CheckSizelessVectorConditionalTypes()
6922 if (!Context.hasSameType(LTy, RTy) && in CXXCheckConditionalOperands()
[all …]
H A DSemaDeclCXX.cpp1381 else if (!S.Context.hasSameType(P.back().Base->getType(), in findDecomposableBaseClass()
1597 assert(Context.hasSameType(New->getType(), Old->getType()) && in MergeVarDeclExceptionSpecs()
7628 if (!Context.hasSameType(ReturnType, ExpectedReturnType)) { in CheckExplicitlyDefaultedSpecialMember()
7652 if (!Context.hasSameType( in CheckExplicitlyDefaultedSpecialMember()
8660 if (E->isPRValue() && S.Context.hasSameType(E->getType(), R)) in buildStaticCastToR()
8810 if (!RD->isDependentType() && !Context.hasSameType(CTy, ExpectedTy)) in CheckExplicitlyDefaultedComparison()
8840 } else if (!Context.hasSameType(KnownParm->getType(), ParmTy)) { in CheckExplicitlyDefaultedComparison()
8877 !Context.hasSameType(FD->getDeclaredReturnType(), Context.BoolTy)) { in CheckExplicitlyDefaultedComparison()
8889 (!Context.hasSameType(RT, Context.getAutoDeductType()) || in CheckExplicitlyDefaultedComparison()
12332 return Context.hasSameType(TD in IsEquivalentForUsingDecl()
[all...]
H A DSemaOpenCL.cpp423 !S.Context.hasSameType( in checkPipePacketType()
H A DSemaTemplateDeduction.cpp234 if (YType.isNull() || !Context.hasSameType(XType, YType)) in checkDeducedTemplateArguments()
246 if (Y.getKind() == TemplateArgument::Type && Context.hasSameType(TX, TY)) in checkDeducedTemplateArguments()
1345 return Context.hasSameType(P, A); in isSameOrCompatibleFunctionType()
1752 : S.Context.hasSameType(P, A)) in DeduceTemplateArgumentsByTypeMatch()
1797 : S.Context.hasSameType(P, A)) in DeduceTemplateArgumentsByTypeMatch()
2460 S.Context.hasSameType(P.getNullPtrType(), A.getNullPtrType())) in DeduceTemplateArguments()
2696 return Context.hasSameType(X.getNullPtrType(), Y.getNullPtrType()); in isSameTemplateArg()
5200 if (!Context.hasSameType(DeducedType, Result)) { in DeduceAutoType()
5721 !Context.hasSameType(FD1->getReturnType(), FD2->getReturnType())) in getMoreSpecializedTemplate()
H A DSemaOverload.cpp1358 bool SameReturnType = SemaRef.Context.hasSameType( in IsOverloadOrOverrideImpl()
3069 if (Context.hasSameType(FromPointeeType, ToPointeeType)) in IsBlockPointerConversion()
3084 if (Context.hasSameType(FromFunctionType->getReturnType(), in IsBlockPointerConversion()
3094 if (Context.hasSameType(RHS,LHS)) { in IsBlockPointerConversion()
3112 if (Context.hasSameType(FromArgType, ToArgType)) { in IsBlockPointerConversion()
3169 if (!Context.hasSameType(FromMember->getClass(), ToMember->getClass())) { in HandleFunctionTypeMismatch()
3195 if (Context.hasSameType(FromType, ToType)) { in HandleFunctionTypeMismatch()
3225 if (!Context.hasSameType(FromFunction->getReturnType(), in HandleFunctionTypeMismatch()
3270 if (!Context.hasSameType(OldType, NewType)) { in FunctionParamTypesAreEqual()
4214 return Context.hasSameType(SCS1.getToType(2), SCS2.getToType(2))? Result in compareStandardConversionSubsets()
[all …]
H A DSemaInit.cpp1455 assert(SemaRef.Context.hasSameType(expr->getType(), ElemType) && in CheckSubElementType()
4466 if (!S.Context.hasSameType(ConvType, DestType)) in TryConstructorInitialization()
5059 if (!S.Context.hasSameType(cv1T4, cv1T1)) in TryRefInitWithConversionFunction()
5316 if (!S.Context.hasSameType(cv1T4, cv1T1)) in TryReferenceInitializationCore()
5978 else if (!S.Context.hasSameType(ConvType, DestType)) in TryUserDefinedConversion()
6105 if (Context.hasSameType(QualType(Dest, 0), QualType(Source, 0))) in hasCompatibleArrayTypes()
6109 if (!Context.hasSameType(Dest->getElementType(), Source->getElementType())) in hasCompatibleArrayTypes()
7783 S.Context.hasSameType( in Perform()
7981 bool IsTemporary = !S.Context.hasSameType(Entity.getType(), Ty); in Perform()
8294 !S.Context.hasSameType(Field->getType()->getPointeeType(), in Perform()
[all …]
H A DSemaCast.cpp1134 if (Self.Context.hasSameType(SrcFTy, DstFTy)) in checkCastFunctionType()
2096 if (Self.Context.hasSameType(SrcType, DestType)) in DiagnoseCastOfObjCSEL()
2117 if (Self.Context.hasSameType(SrcType, DstType) || in DiagnoseCallingConvCast()
2637 if (Self.Context.hasSameType(SrcPointeeTypeWithoutAS, in TryAddressSpaceCast()
H A DSemaExprObjC.cpp4942 (Context.hasSameType(RHSTy, Context.getObjCClassRedefinitionType()))) { in FindCompositeObjCPointerType()
4948 (Context.hasSameType(LHSTy, Context.getObjCClassRedefinitionType()))) { in FindCompositeObjCPointerType()
4955 (Context.hasSameType(RHSTy, Context.getObjCIdRedefinitionType()))) { in FindCompositeObjCPointerType()
4961 (Context.hasSameType(LHSTy, Context.getObjCIdRedefinitionType()))) { in FindCompositeObjCPointerType()
4968 (Context.hasSameType(RHSTy, Context.getObjCSelRedefinitionType()))) { in FindCompositeObjCPointerType()
4973 (Context.hasSameType(LHSTy, Context.getObjCSelRedefinitionType()))) { in FindCompositeObjCPointerType()
H A DSemaObjCProperty.cpp517 if (!Context.hasSameType(PIDecl->getType(), PDecl->getType())) { in HandlePropertyInClassExtension()
1344 if (!Context.hasSameType(PropertyIvarType, IvarType)) { in ActOnPropertyImplDecl()
1696 bool compat = Context.hasSameType(PropertyRValueType, GetterType); in DiagnosePropertyAccessorMismatch()
H A DSemaDecl.cpp2416 if (S.Context.hasSameType(OldTD->getUnderlyingType(), in filterNonConflictingPreviousTypedefDecls()
2455 !Context.hasSameType(OldType, NewType)) { in isIncompatibleTypedef()
3872 if (!Context.hasSameType(OldDeclaredReturnType, NewDeclaredReturnType) && in MergeFunctionDecl()
4328 assert(!S.Context.hasSameType(New->getType(), Old->getType())); in diagnoseVarDeclTypeMismatch()
4353 } else if (Context.hasSameType(New->getType(), Old->getType())) { in MergeVarDeclTypes()
4376 if (!Context.hasSameType(New->getType(), PrevVDTy)) in MergeVarDeclTypes()
4382 if (Context.hasSameType(OldArray->getElementType(), in MergeVarDeclTypes()
4390 if (Context.hasSameType(OldArray->getElementType(), in MergeVarDeclTypes()
4919 if (!Context.hasSameType(NewTD->getUnderlyingType(), in setTagNameForLinkagePurposes()
6148 !Context.hasSameType(Name.getCXXNameType(), in diagnoseQualifiedDeclaration()
[all …]
H A DSemaExpr.cpp1564 if (Context.hasSameType(LHSType, RHSType)) in UsualArithmeticConversions()
1583 if (Context.hasSameType(LHSType, RHSType)) in UsualArithmeticConversions()
7361 if (Context.hasSameType(ET, DestTy)) in PrepareScalarCast()
7395 if (Context.hasSameType(ET, DestTy)) in PrepareScalarCast()
7920 if (S.Context.hasSameType(LHSTy, RHSTy)) { in checkConditionalPointerCompatibility()
8465 if (LHSTy->isNullPtrType() && Context.hasSameType(LHSTy, RHSTy)) in CheckConditionalOperands()
8509 if (Context.hasSameType(LHSTy, RHSTy)) in CheckConditionalOperands()
8753 && Context.hasSameType(commonExpr->getType(), RHSExpr->getType()))) { in ActOnConditionalOp()
9309 Context.hasSameType(LHSType, in CheckAssignmentConstraints()
9403 Context.hasSameType(RHSType, in CheckAssignmentConstraints()
[all …]
H A DSemaStmtAsm.cpp620 if (Context.hasSameType(InTy, OutTy)) in ActOnGCCAsmStmt()
H A DCheckExprLifetime.cpp418 if (Ctx.hasSameType(RetT, LHST)) in implicitObjectParamIsLifetimeBound()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTDiagnostic.cpp1153 if (Context.hasSameType(FromType, ToType)) in OnlyPerformTypeDiff()
1181 Context.hasSameType(FromType, ToType)); in DiffTypes()
1233 Context.hasSameType(ArgType->getPointeeType(), VDType)) in InitializeNonTypeDiffVariables()
1274 Context.hasSameType(ArgType->getPointeeType(), VDType)) in InitializeNonTypeDiffVariables()
1346 Tree.SetSame(Context.hasSameType(FromIntType, ToIntType) && in DiffNonTypes()
1839 !Context.hasSameType(FromIntType, ToIntType); in PrintAPSInt()
H A DASTContext.cpp3563 return hasSameType(T, U) || in hasSameFunctionTypeIgnoringExceptionSpec()
3565 hasSameType(getFunctionTypeWithExceptionSpec(T, EST_None), in hasSameFunctionTypeIgnoringExceptionSpec()
3587 return hasSameType(T, U) || in hasSameFunctionTypeIgnoringPtrSizes()
3588 hasSameType(getFunctionTypeWithoutPtrSizes(T), in hasSameFunctionTypeIgnoringPtrSizes()
5071 assert(hasSameType(Decl->getUnderlyingType(), Underlying)); in getTypedefType()
6595 if (hasSameType(T1, T2)) in hasSimilarType()
6613 if (hasSameType(T1, T2)) in hasCvrSimilarType()
6800 TX->getASTContext().hasSameType(TX->getType(), TY->getType()) && in isSameTemplateParameter()
6836 return hasSameType(TTPX->getDefaultArgument().getArgument().getAsType(), in isSameDefaultTemplateArgument()
6970 return hasSameType(TypedefX->getUnderlyingType(), in isSameEntity()
[all …]
H A DODRDiagsEmitter.cpp186 assert(Context.hasSameType(FirstField->getType(), SecondField->getType())); in diagnoseSubMismatchField()
1712 assert(Context.hasSameType(FirstParam->getType(), SecondParam->getType()) && in diagnoseMismatch()
H A DASTStructuralEquivalence.cpp2338 if (Context.hasSameType(F->getType(), AnonTy)) in findUntaggedStructOrUnionIndex()
2354 if (Context.hasSameType(FieldType, AnonTy)) in findUntaggedStructOrUnionIndex()
/freebsd/contrib/llvm-project/clang/lib/Interpreter/
H A DValue.cpp101 if (Ctx.hasSameType(QT, Ctx.VoidTy)) in ConvertQualTypeToKind()
H A DCodeCompletion.cpp112 } else if (S.Context.hasSameType(ArgumentType, PreferredType)) { in handleDeclaration()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprAgg.cpp429 Ctx.hasSameType(Field->getType()->getPointeeType(), in VisitCXXStdInitializerListExpr()
445 if (Ctx.hasSameType(Field->getType(), Ctx.getSizeType())) { in VisitCXXStdInitializerListExpr()
452 Ctx.hasSameType(Field->getType()->getPointeeType(), in VisitCXXStdInitializerListExpr()
1046 assert(CGF.getContext().hasSameType(E->getLHS()->getType(), in VisitBinCmp()
H A DCGCoroutine.cpp682 return CGF.getContext().hasSameType(GroType, CGF.FnRetTy); in GetReturnObjectManager()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DASTContext.h2634 bool hasSameType(QualType T1, QualType T2) const { in hasSameType() function
2637 bool hasSameType(const Type *T1, const Type *T2) const { in hasSameType() function
/freebsd/contrib/llvm-project/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp828 if (Ctx.hasSameType(ArgTy, CallTy)) { in rewriteToNumberLiteral()

12