Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/lldb/unittests/Symbol/
H A DTestTypeSystemClang.cpp56 EXPECT_TRUE(context.hasSameType(GetBasicQualType(eBasicTypeChar8), in TEST_F()
58 EXPECT_TRUE(context.hasSameType(GetBasicQualType(eBasicTypeChar16), in TEST_F()
60 EXPECT_TRUE(context.hasSameType(GetBasicQualType(eBasicTypeChar32), in TEST_F()
62 EXPECT_TRUE(context.hasSameType(GetBasicQualType(eBasicTypeDouble), in TEST_F()
74 EXPECT_TRUE(context.hasSameType(GetBasicQualType(eBasicTypeInt128), in TEST_F()
81 context.hasSameType(GetBasicQualType(eBasicTypeLongDoubleComplex), in TEST_F()
83 EXPECT_TRUE(context.hasSameType(GetBasicQualType(eBasicTypeLongLong), in TEST_F()
85 EXPECT_TRUE(context.hasSameType(GetBasicQualType(eBasicTypeNullPtr), in TEST_F()
87 EXPECT_TRUE(context.hasSameType(GetBasicQualType(eBasicTypeObjCClass), in TEST_F()
89 EXPECT_TRUE(context.hasSameType(GetBasicQualType(eBasicTypeObjCID), in TEST_F()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DNewDeleteOverloadsCheck.cpp58 Ctx.hasSameType(FPT->getParamType(1), Ctx.getSizeType())) in AST_MATCHER()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DImplicitBoolConversionCheck.cpp50 return Context.hasSameType(Type, Context.FloatTy) ? "0.0f" : "0.0"; in getZeroLiteralToCompareWithForType()
208 if (Context.hasSameType(DestType, Context.FloatTy)) { in getEquivalentForBoolLiteral()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DVirtualNearMissCheck.cpp55 if (Context->hasSameType(DerivedReturnTy, BaseReturnTy)) in checkOverridingFunctionReturnType()
/llvm-project-15.0.7/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()
1801 !Context.hasSameType(FromIntType, ToIntType); in PrintAPSInt()
H A DASTContext.cpp3198 return hasSameType(T, U) || in hasSameFunctionTypeIgnoringExceptionSpec()
3222 return hasSameType(T, U) || in hasSameFunctionTypeIgnoringPtrSizes()
3223 hasSameType(getFunctionTypeWithoutPtrSizes(T), in hasSameFunctionTypeIgnoringPtrSizes()
6088 if (hasSameType(T1, T2)) in hasSimilarType()
6106 if (hasSameType(T1, T2)) in hasCvrSimilarType()
6451 return hasSameType(TypedefX->getUnderlyingType(), in isSameEntity()
6521 if (!hasSameType(XT, YT)) { in isSameEntity()
9332 hasSameType(VT->getElementType(), in areCompatibleSveTypes()
9786 if (ctx.hasSameType(lhsArgs[i], rhsArgs[i])) in sameObjCTypeArgs()
10023 return hasSameType(LHS, RHS); in typesAreCompatible()
[all …]
H A DASTStructuralEquivalence.cpp2127 if (Context.hasSameType(F->getType(), AnonTy)) in findUntaggedStructOrUnionIndex()
2143 if (Context.hasSameType(FieldType, AnonTy)) in findUntaggedStructOrUnionIndex()
H A DTypePrinter.cpp1944 if (Ctx.hasSameType(T, Pattern)) in isSubstitutedType()
1953 return Ctx.hasSameType(SubstArg, T); in isSubstitutedType()
H A DDeclTemplate.cpp581 if (Context.hasSameType(P.getInjectedSpecializationType(), T)) in findPartialSpecialization()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseAutoCheck.cpp322 if (!Context->hasSameType(V->getType(), E->getType())) in replaceIterators()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaExprCXX.cpp617 if (!Context.hasSameType(T, UnqualT)) { in BuildCXXTypeId()
4685 assert(Context.hasSameType( in PerformImplicitConversion()
5534 return Self.Context.hasSameType(LhsT, RhsT); in EvaluateBinaryTypeTrait()
6186 if (!Context.hasSameType(LHSType, RHSType)) { in CheckVectorConditionalTypes()
6206 if (Context.hasSameType(LHSType, RHSType)) in CheckVectorConditionalTypes()
6275 if (!Context.hasSameType(LHSType, RHSType)) { in CheckSizelessVectorConditionalTypes()
6292 if (Context.hasSameType(LHSType, RHSType)) in CheckSizelessVectorConditionalTypes()
6450 if (!Context.hasSameType(LTy, RTy) && in CXXCheckConditionalOperands()
6528 bool Same = Context.hasSameType(LTy, RTy); in CXXCheckConditionalOperands()
6978 if (Context.hasSameType(Cls1, Cls2)) in FindCompositePointerType()
[all …]
H A DSemaTemplateDeduction.cpp229 if (YType.isNull() || !Context.hasSameType(XType, YType)) in checkDeducedTemplateArguments()
241 Context.hasSameType(X.getAsType(), Y.getAsType())) in checkDeducedTemplateArguments()
1154 return Context.hasSameType(P, A); in isSameOrCompatibleFunctionType()
1159 return Context.hasSameType(AdjustedParam, A); in isSameOrCompatibleFunctionType()
1163 return Context.hasSameType(P, A); in isSameOrCompatibleFunctionType()
1563 : S.Context.hasSameType(P, A)) in DeduceTemplateArgumentsByTypeMatch()
1604 : S.Context.hasSameType(P, A)) in DeduceTemplateArgumentsByTypeMatch()
2238 S.Context.hasSameType(P.getNullPtrType(), A.getNullPtrType())) in DeduceTemplateArguments()
2446 return Context.hasSameType(X.getNullPtrType(), Y.getNullPtrType()); in isSameTemplateArg()
4281 !Context.hasSameType(SpecializationType, ArgFunctionType)) in DeduceTemplateArguments()
H A DSemaCXXScopeSpec.cpp110 if (Context.hasSameType(Injected, ContextType)) in computeDeclContext()
698 !Context.hasSameType( in BuildCXXNestedNameSpecifier()
H A DSemaDeclCXX.cpp1328 else if (!S.Context.hasSameType(P.back().Base->getType(), in findDecomposableBaseClass()
8647 !Context.hasSameType(FD->getDeclaredReturnType(), in CheckExplicitlyDefaultedComparison()
11868 return Context.hasSameType(TD1->getUnderlyingType(), in IsEquivalentForUsingDecl()
13056 !Context.hasSameType(OldTD->getUnderlyingType(), in ActOnAliasDeclaration()
16146 Context.hasSameType(ParamType, Context.CharTy) || in CheckLiteralOperatorDeclaration()
16148 Context.hasSameType(ParamType, Context.Char8Ty) || in CheckLiteralOperatorDeclaration()
16149 Context.hasSameType(ParamType, Context.Char16Ty) || in CheckLiteralOperatorDeclaration()
16150 Context.hasSameType(ParamType, Context.Char32Ty)) { in CheckLiteralOperatorDeclaration()
16212 if (!(Context.hasSameType(InnerType, Context.CharTy) || in CheckLiteralOperatorDeclaration()
16214 Context.hasSameType(InnerType, Context.Char8Ty) || in CheckLiteralOperatorDeclaration()
[all …]
H A DSemaOverload.cpp1203 !Context.hasSameType(Old->getDeclaredReturnType(), in IsOverload()
2795 if (Context.hasSameType(RHS,LHS)) { in IsBlockPointerConversion()
2813 if (Context.hasSameType(FromArgType, ToArgType)) { in IsBlockPointerConversion()
2899 if (Context.hasSameType(FromType, ToType)) { in HandleFunctionTypeMismatch()
2929 if (!Context.hasSameType(FromFunction->getReturnType(), in HandleFunctionTypeMismatch()
2978 if (!Context.hasSameType(Old, New)) { in FunctionParamTypesAreEqual()
4408 if (S.Context.hasSameType(FromType1, FromType2) && in CompareDerivedToBaseConversions()
5559 if (!Context.hasSameType(From->getType(), DestType)) { in PerformObjectArgumentInitialization()
10065 if (Context.hasSameType(VA->getType(), VB->getType())) in isEquivalentInternalLinkageDeclaration()
10077 !Context.hasSameType(EnumA->getIntegerType(), in isEquivalentInternalLinkageDeclaration()
[all …]
H A DSemaInit.cpp1363 assert(SemaRef.Context.hasSameType(expr->getType(), ElemType) && in CheckSubElementType()
4194 if (!S.Context.hasSameType(ConvType, DestType)) in TryConstructorInitialization()
4757 if (!S.Context.hasSameType(cv1T4, cv1T1)) in TryRefInitWithConversionFunction()
5012 if (!S.Context.hasSameType(cv1T4, cv1T1)) in TryReferenceInitializationCore()
5420 else if (!S.Context.hasSameType(ConvType, DestType)) in TryUserDefinedConversion()
5547 if (Context.hasSameType(QualType(Dest, 0), QualType(Source, 0))) in hasCompatibleArrayTypes()
5551 if (!Context.hasSameType(Dest->getElementType(), Source->getElementType())) in hasCompatibleArrayTypes()
7073 if (Ctx.hasSameType(RetT, LHST)) in implicitObjectParamIsLifetimeBound()
8327 S.Context.hasSameType( in Perform()
8529 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()
1717 bool compat = Context.hasSameType(PropertyRValueType, GetterType); in DiagnosePropertyAccessorMismatch()
H A DSemaExpr.cpp7600 if (Context.hasSameType(ET, DestTy)) in PrepareScalarCast()
7634 if (Context.hasSameType(ET, DestTy)) in PrepareScalarCast()
8206 if (S.Context.hasSameType(LHSTy, RHSTy)) { in checkConditionalPointerCompatibility()
9679 Context.hasSameType(LHSType, in CheckAssignmentConstraints()
9773 Context.hasSameType(RHSType, in CheckAssignmentConstraints()
10436 if (Context.hasSameType(LHSType, RHSType)) in CheckVectorOperands()
10643 if (Context.hasSameType(LHSType, RHSType)) in CheckSizelessVectorOperands()
13154 if (Context.hasSameType(LHSType, RHSType)) in CheckMatrixElementwiseOperands()
13199 if (!Context.hasSameType(LHSMatType->getElementType(), in CheckMatrixMultiplyOperands()
16539 if (Context.hasSameType(MSVaListType, E->getType())) { in BuildVAArgExpr()
[all …]
H A DSemaCast.cpp2040 if (Self.Context.hasSameType(SrcType, DestType)) in DiagnoseCastOfObjCSEL()
2061 if (Self.Context.hasSameType(SrcType, DstType) || in DiagnoseCallingConvCast()
2575 if (Self.Context.hasSameType(SrcPointeeTypeWithoutAS, in TryAddressSpaceCast()
H A DSemaStmtAsm.cpp612 if (Context.hasSameType(InTy, OutTy)) in ActOnGCCAsmStmt()
H A DSemaDecl.cpp2428 if (S.Context.hasSameType(OldTD->getUnderlyingType(), in filterNonConflictingPreviousTypedefDecls()
2467 !Context.hasSameType(OldType, NewType)) { in isIncompatibleTypedef()
4290 assert(!S.Context.hasSameType(New->getType(), Old->getType())); in diagnoseVarDeclTypeMismatch()
4322 } else if (Context.hasSameType(New->getType(), Old->getType())) { in MergeVarDeclTypes()
4345 if (!Context.hasSameType(New->getType(), PrevVDTy)) in MergeVarDeclTypes()
4351 if (Context.hasSameType(OldArray->getElementType(), in MergeVarDeclTypes()
4359 if (Context.hasSameType(OldArray->getElementType(), in MergeVarDeclTypes()
4899 if (!Context.hasSameType(NewTD->getUnderlyingType(), in setTagNameForLinkagePurposes()
6125 !Context.hasSameType(Name.getCXXNameType(), in diagnoseQualifiedDeclaration()
11692 if (Context.hasSameType(FT->getReturnType(), Context.IntTy)) in CheckMain()
[all …]
H A DSemaTemplate.cpp6929 ? !Context.hasSameType(ParamType.getNonReferenceType(), in CheckTemplateArgument()
7217 if (Context.hasSameType(ParamType, ArgType)) { in CheckTemplateArgument()
7624 if (!Context.hasSameType(RefExpr.get()->getType(), DestExprType)) { in BuildExpressionFromDeclTemplateArgument()
7769 if (!S.Context.hasSameType(OldNTTP->getType(), NewNTTP->getType())) { in MatchTemplateParameterKind()
8469 if (Context.hasSameType(CanonType, in ActOnClassTemplateSpecialization()
9314 if (Context.hasSameType(Adjusted, Method->getType())) { in CheckMemberSpecialization()
10230 if (PrevTemplate && !Context.hasSameType(Prev->getType(), R)) { in ActOnExplicitInstantiation()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExprAgg.cpp411 !Ctx.hasSameType(Field->getType()->getPointeeType(), in VisitCXXStdInitializerListExpr()
435 Ctx.hasSameType(Field->getType()->getPointeeType(), in VisitCXXStdInitializerListExpr()
442 } else if (Ctx.hasSameType(Field->getType(), Ctx.getSizeType())) { in VisitCXXStdInitializerListExpr()
1011 assert(CGF.getContext().hasSameType(E->getLHS()->getType(), in VisitBinCmp()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DASTContext.h2533 bool hasSameType(QualType T1, QualType T2) const { in hasSameType() function
2536 bool hasSameType(const Type *T1, const Type *T2) const { in hasSameType() function
/llvm-project-15.0.7/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp831 if (Ctx.hasSameType(ArgTy, CallTy)) { in rewriteToNumberLiteral()

12