Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaWasm.cpp131 if (!getASTContext().hasSameType(ElTy, TheCall->getArg(2)->getType())) in BuiltinWasmTableSet()
161 if (!getASTContext().hasSameType(ElTy, NewElemArg->getType())) { in BuiltinWasmTableGrow()
188 if (!getASTContext().hasSameType(ElTy, NewElemArg->getType())) { in BuiltinWasmTableFill()
216 if (!getASTContext().hasSameType(XElTy, YElTy)) { in BuiltinWasmTableCopy()
H A DSemaSYCL.cpp262 if (!getASTContext().hasSameType(SAI->getKernelName(), in CheckSYCLEntryPointFunctionDecl()
288 if (!getASTContext().hasSameType(SKEPAttr->getKernelName(), in CheckSYCLEntryPointFunctionDecl()
H A DSemaExprCXX.cpp610 if (!Context.hasSameType(T, UnqualT)) { in BuildCXXTypeId()
1788 if (!S.Context.hasSameType(TypeIdentityTag, ExpectedTypeIdentityTag)) {
3189 if (Context.hasSameType(adjustCCAndNoReturn(Fn->getType(), in FindAllocationFunctions()
4703 if (Context.hasSameType(FromType, Context.OverloadTy)) { in PerformImplicitConversion()
5279 assert(Context.hasSameType( in PerformImplicitConversion()
5679 if (!Context.hasSameType(LHSType, RHSType)) { in CheckVectorConditionalTypes()
5698 Context.hasSameType(LHSType, RHSType) in CheckVectorConditionalTypes()
5766 if (!Context.hasSameType(LHSType, RHSType)) { in CheckSizelessVectorConditionalTypes()
5784 if (Context.hasSameType(LHSType, RHSType)) in CheckSizelessVectorConditionalTypes()
5929 if (!Context.hasSameType(LTy, RTy) && in CXXCheckConditionalOperands()
[all …]
H A DSemaCXXScopeSpec.cpp123 if (Context.hasSameType(Injected, QualType(SpecType, 0))) in computeDeclContext()
604 !Context.hasSameType( in BuildCXXNestedNameSpecifier()
H A DSemaOpenCL.cpp423 !S.Context.hasSameType( in checkPipePacketType()
H A DSemaDeclCXX.cpp1434 else if (!S.Context.hasSameType(P.back().Base->getType(), in findDecomposableBaseClass()
1717 assert(Context.hasSameType(New->getType(), Old->getType()) && in MergeVarDeclExceptionSpecs()
7792 if (!Context.hasSameType(ReturnType, ExpectedReturnType)) { in CheckExplicitlyDefaultedSpecialMember()
7821 !Context.hasSameType(ExplicitObjectParameter.getNonReferenceType(), in CheckExplicitlyDefaultedSpecialMember()
8839 if (E->isPRValue() && S.Context.hasSameType(E->getType(), R)) in buildStaticCastToR()
8992 Ok &= RD->isDependentType() || Context.hasSameType(CTy, ExpectedTy); in CheckExplicitlyDefaultedComparison()
9020 } else if (!Context.hasSameType(KnownParm->getType(), ParmTy)) { in CheckExplicitlyDefaultedComparison()
9056 !Context.hasSameType(FD->getDeclaredReturnType(), Context.BoolTy)) { in CheckExplicitlyDefaultedComparison()
9068 (!Context.hasSameType(RT, Context.getAutoDeductType()) || in CheckExplicitlyDefaultedComparison()
12659 return Context.hasSameType(TD1->getUnderlyingType(), in IsEquivalentForUsingDecl()
[all …]
H A DSemaInit.cpp1526 assert(SemaRef.Context.hasSameType(expr->getType(), ElemType) && in CheckSubElementType()
4621 if (!S.Context.hasSameType(ConvType, DestType)) in TryConstructorInitialization()
5316 if (!S.Context.hasSameType(cv1T4, cv1T1)) in TryRefInitWithConversionFunction()
5574 if (!S.Context.hasSameType(cv1T4, cv1T1)) in TryReferenceInitializationCore()
6245 else if (!S.Context.hasSameType(ConvType, DestType)) in TryUserDefinedConversion()
6355 if (Context.hasSameType(QualType(Dest, 0), QualType(Source, 0))) in hasCompatibleArrayTypes()
6359 if (!Context.hasSameType(Dest->getElementType(), Source->getElementType())) in hasCompatibleArrayTypes()
8052 S.Context.hasSameType( in Perform()
8250 bool IsTemporary = !S.Context.hasSameType(Entity.getType(), Ty); in Perform()
8575 !S.Context.hasSameType(Field->getType()->getPointeeType(), in Perform()
[all …]
H A DSemaTemplateDeduction.cpp222 if (YType.isNull() || !Context.hasSameType(XType, YType)) in checkDeducedTemplateArguments()
234 if (Y.getKind() == TemplateArgument::Type && Context.hasSameType(TX, TY)) in checkDeducedTemplateArguments()
1333 return Context.hasSameType(P, A); in isSameOrCompatibleFunctionType()
1769 : S.Context.hasSameType(P, A)) in DeduceTemplateArgumentsByTypeMatch()
1814 : S.Context.hasSameType(P, A)) in DeduceTemplateArgumentsByTypeMatch()
5314 if (!Context.hasSameType(DeducedType, Result)) { in DeduceAutoType()
5559 if (!S.Context.hasSameType(T1, T2)) in CheckDeductionConsistency()
6027 !Context.hasSameType(FD1->getReturnType(), FD2->getReturnType())) in getMoreSpecializedTemplate()
H A DSemaCast.cpp1184 if (Self.Context.hasSameType(SrcFTy, DstFTy)) in checkCastFunctionType()
2127 if (Self.Context.hasSameType(SrcType, DestType)) in DiagnoseCastOfObjCSEL()
2149 if (Self.Context.hasSameType(SrcType, DstType) || in DiagnoseCallingConvCast()
2669 if (Self.Context.hasSameType(SrcPointeeTypeWithoutAS, in TryAddressSpaceCast()
H A DSemaOverload.cpp1398 bool SameReturnType = SemaRef.Context.hasSameType( in IsOverloadOrOverrideImpl()
3246 if (Context.hasSameType(FromPointeeType, ToPointeeType)) in IsBlockPointerConversion()
3261 if (Context.hasSameType(FromFunctionType->getReturnType(), in IsBlockPointerConversion()
3271 if (Context.hasSameType(RHS,LHS)) { in IsBlockPointerConversion()
3289 if (Context.hasSameType(FromArgType, ToArgType)) { in IsBlockPointerConversion()
3382 if (Context.hasSameType(FromType, ToType)) { in HandleFunctionTypeMismatch()
3412 if (!Context.hasSameType(FromFunction->getReturnType(), in HandleFunctionTypeMismatch()
3457 if (!Context.hasSameType(OldType, NewType)) { in FunctionParamTypesAreEqual()
4450 return Context.hasSameType(SCS1.getToType(2), SCS2.getToType(2))? Result in compareStandardConversionSubsets()
4517 if (S.Context.hasSameType(SCS.getToType(1), UnderlyingType)) in getFixedEnumPromtion()
[all …]
H A DSemaExprObjC.cpp4936 (Context.hasSameType(RHSTy, Context.getObjCClassRedefinitionType()))) { in FindCompositeObjCPointerType()
4942 (Context.hasSameType(LHSTy, Context.getObjCClassRedefinitionType()))) { in FindCompositeObjCPointerType()
4949 (Context.hasSameType(RHSTy, Context.getObjCIdRedefinitionType()))) { in FindCompositeObjCPointerType()
4955 (Context.hasSameType(LHSTy, Context.getObjCIdRedefinitionType()))) { in FindCompositeObjCPointerType()
4962 (Context.hasSameType(RHSTy, Context.getObjCSelRedefinitionType()))) { in FindCompositeObjCPointerType()
4967 (Context.hasSameType(LHSTy, Context.getObjCSelRedefinitionType()))) { in FindCompositeObjCPointerType()
H A DSemaObjCProperty.cpp518 if (!Context.hasSameType(PIDecl->getType(), PDecl->getType())) { in HandlePropertyInClassExtension()
1354 if (!Context.hasSameType(PropertyIvarType, IvarType)) { in ActOnPropertyImplDecl()
1706 bool compat = Context.hasSameType(PropertyRValueType, GetterType); in DiagnosePropertyAccessorMismatch()
H A DSemaExpr.cpp1572 if (SemaRef.getASTContext().hasSameType(LHSType, RHSType)) in CheckUnicodeArithmeticConversions()
1625 if (SemaRef.getASTContext().hasSameType(LHSType, RHSType)) in CheckUnicodeArithmeticConversions()
1665 if (Context.hasSameType(LHSType, RHSType)) in UsualArithmeticConversions()
1684 if (Context.hasSameType(LHSType, RHSType)) in UsualArithmeticConversions()
7517 if (Context.hasSameType(ET, DestTy)) in PrepareScalarCast()
7551 if (Context.hasSameType(ET, DestTy)) in PrepareScalarCast()
8079 if (S.Context.hasSameType(LHSTy, RHSTy)) { in checkConditionalPointerCompatibility()
8636 if (LHSTy->isNullPtrType() && Context.hasSameType(LHSTy, RHSTy)) in CheckConditionalOperands()
8680 if (Context.hasSameType(LHSTy, RHSTy)) in CheckConditionalOperands()
8899 && Context.hasSameType(commonExpr->getType(), RHSExpr->getType()))) { in ActOnConditionalOp()
[all …]
H A DSemaDecl.cpp2434 if (S.Context.hasSameType(OldTD->getUnderlyingType(), in filterNonConflictingPreviousTypedefDecls()
2473 !Context.hasSameType(OldType, NewType)) { in isIncompatibleTypedef()
3944 if (!Context.hasSameType(OldDeclaredReturnType, NewDeclaredReturnType) && in MergeFunctionDecl()
4422 assert(!S.Context.hasSameType(New->getType(), Old->getType())); in diagnoseVarDeclTypeMismatch()
4447 } else if (Context.hasSameType(New->getType(), Old->getType())) { in MergeVarDeclTypes()
4470 if (!Context.hasSameType(New->getType(), PrevVDTy)) in MergeVarDeclTypes()
4476 if (Context.hasSameType(OldArray->getElementType(), in MergeVarDeclTypes()
4484 if (Context.hasSameType(OldArray->getElementType(), in MergeVarDeclTypes()
5026 if (!Context.hasSameType(NewTD->getUnderlyingType(), in setTagNameForLinkagePurposes()
6262 !Context.hasSameType(Name.getCXXNameType(), in diagnoseQualifiedDeclaration()
[all …]
H A DSemaTemplate.cpp3158 if (!S.Context.hasSameType(T1, D1) || !S.Context.hasSameType(T2, D2)) in builtinCommonTypeImpl()
7037 ? !Context.hasSameType(ParamType.getNonReferenceType(), in CheckTemplateArgument()
7329 if (Context.hasSameType(ParamType, ArgType)) { in CheckTemplateArgument()
7782 if (!Context.hasSameType(RefExpr.get()->getType(), DestExprType)) { in BuildExpressionFromDeclTemplateArgument()
8025 if (!S.Context.hasSameType(OldType, NewType)) { in MatchTemplateParameterKind()
8717 if (Context.hasSameType( in ActOnClassTemplateSpecialization()
9581 if (!Context.hasSameType(Adjusted, Method->getType())) in CheckMemberSpecialization()
10545 if (PrevTemplate && !Context.hasSameType(Prev->getType(), R)) { in ActOnExplicitInstantiation()
H A DSemaStmtAsm.cpp656 if (Context.hasSameType(InTy, OutTy)) in ActOnGCCAsmStmt()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTDiagnostic.cpp1182 if (Context.hasSameType(FromType, ToType)) in OnlyPerformTypeDiff()
1210 Context.hasSameType(FromType, ToType)); in DiffTypes()
1262 Context.hasSameType(ArgType->getPointeeType(), VDType)) in InitializeNonTypeDiffVariables()
1303 Context.hasSameType(ArgType->getPointeeType(), VDType)) in InitializeNonTypeDiffVariables()
1375 Tree.SetSame(Context.hasSameType(FromIntType, ToIntType) && in DiffNonTypes()
1878 !Context.hasSameType(FromIntType, ToIntType); in PrintAPSInt()
H A DASTContext.cpp3827 return hasSameType(T, U) || in hasSameFunctionTypeIgnoringExceptionSpec()
3829 hasSameType(getFunctionTypeWithExceptionSpec(T, EST_None), in hasSameFunctionTypeIgnoringExceptionSpec()
3851 return hasSameType(T, U) || in hasSameFunctionTypeIgnoringPtrSizes()
3852 hasSameType(getFunctionTypeWithoutPtrSizes(T), in hasSameFunctionTypeIgnoringPtrSizes()
3867 return hasSameType(T, U) || hasSameType(getFunctionTypeWithoutParamABIs(T), in hasSameFunctionTypeIgnoringParamABI()
5297 assert(hasSameType(Decl->getUnderlyingType(), Underlying)); in getTypedefType()
7044 if (hasSameType(T1, T2)) in hasSimilarType()
7062 if (hasSameType(T1, T2)) in hasCvrSimilarType()
7327 TX->getASTContext().hasSameType(TX->getType(), TY->getType()) && in isSameTemplateParameter()
7363 return hasSameType(TTPX->getDefaultArgument().getArgument().getAsType(), in isSameDefaultTemplateArgument()
[all …]
H A DODRDiagsEmitter.cpp186 assert(Context.hasSameType(FirstField->getType(), SecondField->getType())); in diagnoseSubMismatchField()
1710 assert(Context.hasSameType(FirstParam->getType(), SecondParam->getType()) && in diagnoseMismatch()
/freebsd/contrib/llvm-project/clang/lib/Interpreter/
H A DValue.cpp98 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.cpp434 Ctx.hasSameType(Field->getType()->getPointeeType(), in VisitCXXStdInitializerListExpr()
450 if (Ctx.hasSameType(Field->getType(), Ctx.getSizeType())) { in VisitCXXStdInitializerListExpr()
457 Ctx.hasSameType(Field->getType()->getPointeeType(), in VisitCXXStdInitializerListExpr()
1179 assert(CGF.getContext().hasSameType(E->getLHS()->getType(), in VisitBinCmp()
H A DCGCoroutine.cpp683 return CGF.getContext().hasSameType(GroType, CGF.FnRetTy); in GetReturnObjectManager()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DOverload.h451 if (!C.hasSameType(getFromType(), getToType(2))) in isPerfect()
/freebsd/contrib/llvm-project/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp828 if (Ctx.hasSameType(ArgTy, CallTy)) { in rewriteToNumberLiteral()

123