Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DASTDiagnostic.cpp1153 if (Context.hasSameType(FromType, ToType)) in OnlyPerformTypeDiff()
1181 Context.hasSameType(FromType, ToType)); in DiffTypes()
1230 Context.hasSameType(ArgType->getPointeeType(), VDType)) in InitializeNonTypeDiffVariables()
1260 Context.hasSameType(ArgType->getPointeeType(), VDType)) in InitializeNonTypeDiffVariables()
1324 Tree.SetSame(Context.hasSameType(FromIntType, ToIntType) && in DiffNonTypes()
1817 !Context.hasSameType(FromIntType, ToIntType); in PrintAPSInt()
H A DASTContext.cpp3182 return hasSameType(T, U) || in hasSameFunctionTypeIgnoringExceptionSpec()
3206 return hasSameType(T, U) || in hasSameFunctionTypeIgnoringPtrSizes()
6149 if (hasSameType(T1, T2)) in hasSimilarType()
6167 if (hasSameType(T1, T2)) in hasCvrSimilarType()
6600 if (!hasSameType(XT, YT)) { in isSameEntity()
10008 if (ctx.hasSameType(lhsArgs[i], rhsArgs[i])) in sameObjCTypeArgs()
10245 return hasSameType(LHS, RHS); in typesAreCompatible()
13026 if (!Ctx.hasSameType(OX, OY)) in getCommonSugarTypeNode()
13035 if (!Ctx.hasSameType(OX, OY)) in getCommonSugarTypeNode()
13047 if (!Ctx.hasSameType(MX, MY)) in getCommonSugarTypeNode()
[all …]
H A DTypePrinter.cpp2048 if (Ctx.hasSameType(T, Pattern)) in isSubstitutedType()
2057 return Ctx.hasSameType(SubstArg, T); in isSubstitutedType()
H A DASTStructuralEquivalence.cpp2301 if (Context.hasSameType(F->getType(), AnonTy)) in findUntaggedStructOrUnionIndex()
2317 if (Context.hasSameType(FieldType, AnonTy)) in findUntaggedStructOrUnionIndex()
H A DODRDiagsEmitter.cpp186 assert(Context.hasSameType(FirstField->getType(), SecondField->getType())); in diagnoseSubMismatchField()
1707 assert(Context.hasSameType(FirstParam->getType(), SecondParam->getType()) && in diagnoseMismatch()
/freebsd-14.2/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-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplateDeduction.cpp232 if (YType.isNull() || !Context.hasSameType(XType, YType)) in checkDeducedTemplateArguments()
244 if (Y.getKind() == TemplateArgument::Type && Context.hasSameType(TX, TY)) in checkDeducedTemplateArguments()
1207 return Context.hasSameType(P, A); in isSameOrCompatibleFunctionType()
1212 return Context.hasSameType(AdjustedParam, A); in isSameOrCompatibleFunctionType()
1216 return Context.hasSameType(P, A); in isSameOrCompatibleFunctionType()
1616 : S.Context.hasSameType(P, A)) in DeduceTemplateArgumentsByTypeMatch()
1661 : S.Context.hasSameType(P, A)) in DeduceTemplateArgumentsByTypeMatch()
2297 S.Context.hasSameType(P.getNullPtrType(), A.getNullPtrType())) in DeduceTemplateArguments()
5071 if (!Context.hasSameType(DeducedType, Result)) { in DeduceAutoType()
5555 if (!Context.hasSameType(FD1->getParamDecl(i)->getType(), in getMoreSpecializedTemplate()
[all …]
H A DSemaCXXScopeSpec.cpp147 if (Context.hasSameType(Injected, ContextType)) in computeDeclContext()
674 !Context.hasSameType( in BuildCXXNestedNameSpecifier()
H A DSemaExprCXX.cpp626 if (!Context.hasSameType(T, UnqualT)) { in BuildCXXTypeId()
4835 assert(Context.hasSameType( in PerformImplicitConversion()
5773 return Self.Context.hasSameType(LhsT, RhsT); in EvaluateBinaryTypeTrait()
6425 if (!Context.hasSameType(LHSType, RHSType)) { in CheckVectorConditionalTypes()
6444 Context.hasSameType(LHSType, RHSType) in CheckVectorConditionalTypes()
6512 if (!Context.hasSameType(LHSType, RHSType)) { in CheckSizelessVectorConditionalTypes()
6529 if (Context.hasSameType(LHSType, RHSType)) in CheckSizelessVectorConditionalTypes()
6694 if (!Context.hasSameType(LTy, RTy) && in CXXCheckConditionalOperands()
6772 bool Same = Context.hasSameType(LTy, RTy); in CXXCheckConditionalOperands()
6810 if (Context.hasSameType(LTy, RTy)) { in CXXCheckConditionalOperands()
[all …]
H A DSemaDeclCXX.cpp1393 else if (!S.Context.hasSameType(P.back().Base->getType(), in findDecomposableBaseClass()
7762 if (!Context.hasSameType( in CheckExplicitlyDefaultedSpecialMember()
12415 return Context.hasSameType(TD1->getUnderlyingType(), in IsEquivalentForUsingDecl()
13604 !Context.hasSameType(OldTD->getUnderlyingType(), in ActOnAliasDeclaration()
16674 Context.hasSameType(ParamType, Context.CharTy) || in CheckLiteralOperatorDeclaration()
16676 Context.hasSameType(ParamType, Context.Char8Ty) || in CheckLiteralOperatorDeclaration()
16677 Context.hasSameType(ParamType, Context.Char16Ty) || in CheckLiteralOperatorDeclaration()
16678 Context.hasSameType(ParamType, Context.Char32Ty)) { in CheckLiteralOperatorDeclaration()
16740 if (!(Context.hasSameType(InnerType, Context.CharTy) || in CheckLiteralOperatorDeclaration()
16742 Context.hasSameType(InnerType, Context.Char8Ty) || in CheckLiteralOperatorDeclaration()
[all …]
H A DSemaOverload.cpp1309 bool SameReturnType = SemaRef.Context.hasSameType( in IsOverloadOrOverrideImpl()
3026 if (Context.hasSameType(RHS,LHS)) { in IsBlockPointerConversion()
3044 if (Context.hasSameType(FromArgType, ToArgType)) { in IsBlockPointerConversion()
3130 if (Context.hasSameType(FromType, ToType)) { in HandleFunctionTypeMismatch()
3160 if (!Context.hasSameType(FromFunction->getReturnType(), in HandleFunctionTypeMismatch()
3212 if (!Context.hasSameType(OldType, NewType)) { in FunctionParamTypesAreEqual()
4684 if (S.Context.hasSameType(FromType1, FromType2) && in CompareDerivedToBaseConversions()
5864 if (!Context.hasSameType(From->getType(), DestType)) { in PerformImplicitObjectArgumentInitialization()
10207 !S.getASTContext().hasSameType( in sameFunctionParameterTypeLists()
10612 if (Context.hasSameType(VA->getType(), VB->getType())) in isEquivalentInternalLinkageDeclaration()
[all …]
H A DSemaCast.cpp1125 if (Self.Context.hasSameType(SrcFTy, DstFTy)) in checkCastFunctionType()
2087 if (Self.Context.hasSameType(SrcType, DestType)) in DiagnoseCastOfObjCSEL()
2108 if (Self.Context.hasSameType(SrcType, DstType) || in DiagnoseCallingConvCast()
2628 if (Self.Context.hasSameType(SrcPointeeTypeWithoutAS, in TryAddressSpaceCast()
H A DSemaExpr.cpp1579 if (Context.hasSameType(LHSType, RHSType)) in UsualArithmeticConversions()
1598 if (Context.hasSameType(LHSType, RHSType)) in UsualArithmeticConversions()
8168 if (Context.hasSameType(ET, DestTy)) in PrepareScalarCast()
8202 if (Context.hasSameType(ET, DestTy)) in PrepareScalarCast()
8771 if (S.Context.hasSameType(LHSTy, RHSTy)) { in checkConditionalPointerCompatibility()
9360 if (Context.hasSameType(LHSTy, RHSTy)) in CheckConditionalOperands()
10305 Context.hasSameType(LHSType, in CheckAssignmentConstraints()
10399 Context.hasSameType(RHSType, in CheckAssignmentConstraints()
11097 if (Context.hasSameType(LHSType, RHSType)) in CheckVectorOperands()
11338 if (Context.hasSameType(LHSType, RHSType)) in CheckSizelessVectorOperands()
[all …]
H A DSemaInit.cpp1399 assert(SemaRef.Context.hasSameType(expr->getType(), ElemType) && in CheckSubElementType()
4329 if (!S.Context.hasSameType(ConvType, DestType)) in TryConstructorInitialization()
4922 if (!S.Context.hasSameType(cv1T4, cv1T1)) in TryRefInitWithConversionFunction()
5179 if (!S.Context.hasSameType(cv1T4, cv1T1)) in TryReferenceInitializationCore()
5837 else if (!S.Context.hasSameType(ConvType, DestType)) in TryUserDefinedConversion()
5964 if (Context.hasSameType(QualType(Dest, 0), QualType(Source, 0))) in hasCompatibleArrayTypes()
5968 if (!Context.hasSameType(Dest->getElementType(), Source->getElementType())) in hasCompatibleArrayTypes()
7543 if (Ctx.hasSameType(RetT, LHST)) in implicitObjectParamIsLifetimeBound()
8835 S.Context.hasSameType( in Perform()
9034 bool IsTemporary = !S.Context.hasSameType(Entity.getType(), Ty); in Perform()
H A DSemaObjCProperty.cpp526 if (!Context.hasSameType(PIDecl->getType(), PDecl->getType())) { in HandlePropertyInClassExtension()
1363 if (!Context.hasSameType(PropertyIvarType, IvarType)) { in ActOnPropertyImplDecl()
1716 bool compat = Context.hasSameType(PropertyRValueType, GetterType); in DiagnosePropertyAccessorMismatch()
H A DSemaDecl.cpp2556 if (S.Context.hasSameType(OldTD->getUnderlyingType(), in filterNonConflictingPreviousTypedefDecls()
2595 !Context.hasSameType(OldType, NewType)) { in isIncompatibleTypedef()
4447 assert(!S.Context.hasSameType(New->getType(), Old->getType())); in diagnoseVarDeclTypeMismatch()
4502 if (!Context.hasSameType(New->getType(), PrevVDTy)) in MergeVarDeclTypes()
4508 if (Context.hasSameType(OldArray->getElementType(), in MergeVarDeclTypes()
4516 if (Context.hasSameType(OldArray->getElementType(), in MergeVarDeclTypes()
5055 if (!Context.hasSameType(NewTD->getUnderlyingType(), in setTagNameForLinkagePurposes()
6341 !Context.hasSameType(Name.getCXXNameType(), in diagnoseQualifiedDeclaration()
12367 if (Context.hasSameType(FT->getReturnType(), Context.IntTy)) in CheckMain()
19040 if (!Context.hasSameType(M1->getNonObjectParameter(0)->getType(), in AreSpecialMemberFunctionsSameKind()
[all …]
H A DSemaStmtAsm.cpp620 if (Context.hasSameType(InTy, OutTy)) in ActOnGCCAsmStmt()
H A DSemaTemplate.cpp7309 ? !Context.hasSameType(ParamType.getNonReferenceType(), in CheckTemplateArgument()
7599 if (Context.hasSameType(ParamType, ArgType)) { in CheckTemplateArgument()
8049 if (!Context.hasSameType(RefExpr.get()->getType(), DestExprType)) { in BuildExpressionFromDeclTemplateArgument()
8302 if (!S.Context.hasSameType(OldType, NewType)) { in MatchTemplateParameterKind()
9016 if (Context.hasSameType(CanonType, in ActOnClassTemplateSpecialization()
9871 if (Context.hasSameType(Adjusted, Method->getType())) { in CheckMemberSpecialization()
10788 if (PrevTemplate && !Context.hasSameType(Prev->getType(), R)) { in ActOnExplicitInstantiation()
H A DSemaChecking.cpp1793 !S.Context.hasSameType( in checkOpenCLPipePacketType()
9318 if (!Context.hasSameType(Real->getType(), Imag->getType())) { in SemaBuiltinComplex()
12742 else if (Context.hasSameType(ParamType, ArgType)) { in getBestAbsFunction()
19038 C.hasSameType(ED1->getIntegerType(), ED2->getIntegerType()); in isLayoutCompatible()
19153 if (C.hasSameType(T1, T2)) in isLayoutCompatible()
19416 mismatch = !Context.hasSameType(ArgumentType, RequiredType); in CheckArgumentWithTypeTag()
19930 !Context.hasSameType(ElementTy, MatrixTy->getElementType())) { in SemaBuiltinMatrixColumnMajorStore()
20034 if (!Context.hasSameType(ElTy, TheCall->getArg(2)->getType())) in BuiltinWasmTableSet()
20064 if (!Context.hasSameType(ElTy, NewElemArg->getType())) { in BuiltinWasmTableGrow()
20091 if (!Context.hasSameType(ElTy, NewElemArg->getType())) { in BuiltinWasmTableFill()
[all …]
H A DSemaDeclObjC.cpp240 if (!Context.hasSameType(method->getReturnType(), Context.VoidTy)) { in CheckARCMethodDecl()
915 if (S.Context.hasSameType(prevTypeParam->getUnderlyingType(), in checkTypeParamListConsistency()
2205 if (!Context.hasSameType(ImplIvar->getType(), ClsIvar->getType())) { in CheckImplementationIvars()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprAgg.cpp432 !Ctx.hasSameType(Field->getType()->getPointeeType(), in VisitCXXStdInitializerListExpr()
456 Ctx.hasSameType(Field->getType()->getPointeeType(), in VisitCXXStdInitializerListExpr()
463 } else if (Ctx.hasSameType(Field->getType(), Ctx.getSizeType())) { in VisitCXXStdInitializerListExpr()
1032 assert(CGF.getContext().hasSameType(E->getLHS()->getType(), in VisitBinCmp()
H A DCGCoroutine.cpp549 return CGF.getContext().hasSameType(GroType, CGF.FnRetTy); in GetReturnObjectManager()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DASTContext.h2551 bool hasSameType(QualType T1, QualType T2) const { in hasSameType() function
2554 bool hasSameType(const Type *T1, const Type *T2) const { in hasSameType() function
/freebsd-14.2/contrib/llvm-project/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp832 if (Ctx.hasSameType(ArgTy, CallTy)) { in rewriteToNumberLiteral()

12