reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/ARCMigrate/ObjCMT.cpp
  636               !Ctx.hasSameType(ClassProperty->getType(), Property->getType()))
tools/clang/lib/AST/ASTContext.cpp
 2880   return hasSameType(T, U) ||
 2882           hasSameType(getFunctionTypeWithExceptionSpec(T, EST_None),
 5307     if (hasSameType(T1, T2))
 5325     if (hasSameType(T1, T2))
 7956       hasSameType(First->getElementType(), Second->getElementType()) &&
 8353     if (ctx.hasSameType(lhsArgs[i], rhsArgs[i]))
 8359           !ctx.hasSameType(lhsArgs[i].stripObjCKindOfType(ctx),
 8590     return hasSameType(LHS, RHS);
 8832   if (Context.hasSameType(underlyingType, other))
10108     if (CurFD && hasSameType(CurFD->getType(), FD->getType()) &&
10529   if (!hasSameType(MethodDecl->getReturnType(), MethodImpl->getReturnType()))
10543     if (!hasSameType(DeclVar->getType(), ImplVar->getType()))
tools/clang/lib/AST/ASTDiagnostic.cpp
 1104     if (Context.hasSameType(FromType, ToType))
 1132                    Context.hasSameType(FromType, ToType));
 1181               Context.hasSameType(ArgType->getPointeeType(), VDType))
 1211             Context.hasSameType(ArgType->getPointeeType(), VDType))
 1275         Tree.SetSame(Context.hasSameType(FromIntType, ToIntType) &&
 1751                      !Context.hasSameType(FromIntType, ToIntType);
tools/clang/lib/AST/ASTImporter.cpp
 8798       if (ToContext.hasSameType(*ToFromOrErr, To))
tools/clang/lib/AST/ASTStructuralEquivalence.cpp
 1632       if (Context.hasSameType(F->getType(), AnonTy))
 1648         if (Context.hasSameType(FieldType, AnonTy))
tools/clang/lib/AST/Decl.cpp
 2975       Ctx.hasSameType(Ty, Ctx.getSizeType())) {
tools/clang/lib/AST/DeclTemplate.cpp
  466     if (Context.hasSameType(P.getInjectedSpecializationType(), T))
tools/clang/lib/AST/ExprConstant.cpp
 5638       assert(Info.Ctx.hasSameType(BaseIt->getType(), BaseType) &&
 9084       !Info.Ctx.hasSameType(Field->getType()->getPointeeType(),
 9096       Info.Ctx.hasSameType(Field->getType()->getPointeeType(),
 9104   } else if (Info.Ctx.hasSameType(Field->getType(), Info.Ctx.getSizeType()))
tools/clang/lib/CodeGen/CGExprAgg.cpp
  405       !Ctx.hasSameType(Field->getType()->getPointeeType(),
  429       Ctx.hasSameType(Field->getType()->getPointeeType(),
  436   } else if (Ctx.hasSameType(Field->getType(), Ctx.getSizeType())) {
  975   assert(CGF.getContext().hasSameType(E->getLHS()->getType(),
tools/clang/lib/CodeGen/CGExprCXX.cpp
 1324       if (Ctx.hasSameType(FD->getType(), QualType(Type, 0)))
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 1108          !CGF.getContext().hasSameType(BaseTy, ElTy)) {
 1132          !CGF.getContext().hasSameType(BaseTy, ElTy)) {
tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp
  831   if (Ctx.hasSameType(ArgTy, CallTy)) {
tools/clang/lib/Sema/SemaCXXScopeSpec.cpp
  110           if (Context.hasSameType(Injected, ContextType))
  684            !Context.hasSameType(
tools/clang/lib/Sema/SemaCast.cpp
 1859   if (Self.Context.hasSameType(SrcType, DestType))
 1880   if (Self.Context.hasSameType(SrcType, DstType) ||
 2350   return Self.Context.hasSameType(SrcPointeeTypeWithoutAS,
tools/clang/lib/Sema/SemaChecking.cpp
  813       !S.Context.hasSameType(
 8944       else if (Context.hasSameType(ParamType, ArgType)) {
14223          C.hasSameType(ED1->getIntegerType(), ED2->getIntegerType());
14338   if (C.hasSameType(T1, T2))
14601     mismatch = !Context.hasSameType(ArgumentType, RequiredType);
tools/clang/lib/Sema/SemaCodeComplete.cpp
 2629   if (T.isNull() || Context.hasSameType(T, Context.DependentTy))
tools/clang/lib/Sema/SemaDecl.cpp
 2151       if (S.Context.hasSameType(OldTD->getUnderlyingType(),
 2190       !Context.hasSameType(OldType, NewType)) {
 3427     if (!Context.hasSameType(OldDeclaredReturnType, NewDeclaredReturnType) &&
 3817   assert(!S.Context.hasSameType(New->getType(), Old->getType()));
 3849     } else if (Context.hasSameType(New->getType(), Old->getType())) {
 3878         if (Context.hasSameType(OldArray->getElementType(),
 3886         if (Context.hasSameType(OldArray->getElementType(),
 4341   if (!Context.hasSameType(NewTD->getUnderlyingType(),
 5493         !Context.hasSameType(Name.getCXXNameType(),
10644     if (Context.hasSameType(FT->getReturnType(), Context.IntTy))
10707           Context.hasSameType(QualType(qs.strip(PT->getPointeeType()), 0),
12888       } else if (!Context.hasSameType(DT->getDeducedType(), Deduced)) {
16970           else if (!Context.hasSameType(Val->getType(), Context.IntTy)) {
17545         !Context.hasSameType(NewTy, ECD->getInitExpr()->getType()))
tools/clang/lib/Sema/SemaDeclAttr.cpp
 2848     if (!S.Context.hasSameType(A->getTypeHint(), ParmType)) {
tools/clang/lib/Sema/SemaDeclCXX.cpp
 1284       else if (!S.Context.hasSameType(P.back().Base->getType(),
 1494   assert(Context.hasSameType(New->getType(), Old->getType()) &&
 6914     if (!Context.hasSameType(ReturnType, ExpectedReturnType)) {
 7065     if (!Context.hasSameType(Param->getType(), ExpectedParmType)) {
 7138       !Context.hasSameType(FD->getDeclaredReturnType(), Context.BoolTy)) {
10019       return Context.hasSameType(TD1->getUnderlyingType(),
10345             !Ctx.hasSameType(QualType(Specifier->getAsType(), 0), FoundType))
11067             !Context.hasSameType(OldTD->getUnderlyingType(),
13987         SemaRef.Context.hasSameType(PmDecl->getType(), SemaRef.Context.CharTy))
14065         Context.hasSameType(ParamType, Context.CharTy) ||
14066         Context.hasSameType(ParamType, Context.WideCharTy) ||
14067         Context.hasSameType(ParamType, Context.Char8Ty) ||
14068         Context.hasSameType(ParamType, Context.Char16Ty) ||
14069         Context.hasSameType(ParamType, Context.Char32Ty)) {
14074       if (!(Context.hasSameType(InnerType.getUnqualifiedType(),
14131     if (!(Context.hasSameType(InnerType, Context.CharTy) ||
14132           Context.hasSameType(InnerType, Context.WideCharTy) ||
14133           Context.hasSameType(InnerType, Context.Char8Ty) ||
14134           Context.hasSameType(InnerType, Context.Char16Ty) ||
14135           Context.hasSameType(InnerType, Context.Char32Ty))) {
14147     if (!Context.hasSameType(SecondParamType, Context.getSizeType())) {
15360   if (Context.hasSameType(NewTy, OldTy) ||
tools/clang/lib/Sema/SemaDeclObjC.cpp
  239     if (!Context.hasSameType(method->getReturnType(), Context.VoidTy)) {
  914     if (S.Context.hasSameType(prevTypeParam->getUnderlyingType(),
 2176     if (!Context.hasSameType(ImplIvar->getType(), ClsIvar->getType())) {
tools/clang/lib/Sema/SemaExpr.cpp
 6416       if (Context.hasSameType(ET, DestTy))
 6450       if (Context.hasSameType(ET, DestTy))
 6926   if (S.Context.hasSameType(LHSTy, RHSTy)) {
 7472       (Context.hasSameType(RHSTy, Context.getObjCClassRedefinitionType()))) {
 7477       (Context.hasSameType(LHSTy, Context.getObjCClassRedefinitionType()))) {
 7483       (Context.hasSameType(RHSTy, Context.getObjCIdRedefinitionType()))) {
 7488       (Context.hasSameType(LHSTy, Context.getObjCIdRedefinitionType()))) {
 7494       (Context.hasSameType(RHSTy, Context.getObjCSelRedefinitionType()))) {
 7499       (Context.hasSameType(LHSTy, Context.getObjCSelRedefinitionType()))) {
 7838           && Context.hasSameType(commonExpr->getType(), RHSExpr->getType()))) {
 8305           Context.hasSameType(LHSType,
 8399           Context.hasSameType(RHSType,
 9030   if (Context.hasSameType(LHSType, RHSType))
10706     assert(Context.hasSameType(LHS.get()->getType(), RHS.get()->getType()));
14457     if (Context.hasSameType(MSVaListType, E->getType())) {
14496       !Context.hasSameType(VaListType, E->getType()))
tools/clang/lib/Sema/SemaExprCXX.cpp
  514     if (!Context.hasSameType(T, UnqualT)) {
 2549       if (Context.hasSameType(adjustCCAndNoReturn(Fn->getType(),
 3928   if (Context.hasSameType(FromType, Context.OverloadTy)) {
 4328     assert(Context.hasSameType(
 5127     return Self.Context.hasSameType(LhsT, RhsT);
 5810   if (!Context.hasSameType(LTy, RTy) &&
 5851   if (!Context.hasSameType(LTy, RTy) &&
 5885   bool Same = Context.hasSameType(LTy, RTy);
 5904       assert(Context.hasSameType(LTy, RTy) && "bad composite pointer type");
 6336   if (C1.Viable && Context.hasSameType(Composite1, Composite2)) {
tools/clang/lib/Sema/SemaInit.cpp
 1333     assert(SemaRef.Context.hasSameType(expr->getType(), ElemType) &&
 4107     if (!S.Context.hasSameType(ConvType, DestType))
 5283     else if (!S.Context.hasSameType(ConvType, DestType))
 5410   if (Context.hasSameType(QualType(Dest, 0), QualType(Source, 0)))
 5414   if (!Context.hasSameType(Dest->getElementType(), Source->getElementType()))
 8195       bool IsTemporary = !S.Context.hasSameType(Entity.getType(), Ty);
tools/clang/lib/Sema/SemaLambda.cpp
  672     if (S.Context.hasSameType(retValue->getType(), returnType))
tools/clang/lib/Sema/SemaObjCProperty.cpp
  532   if (!Context.hasSameType(PIDecl->getType(), PDecl->getType())) {
 1334     if (!Context.hasSameType(PropertyIvarType, IvarType)) {
 1662   bool compat = Context.hasSameType(PropertyRValueType, GetterType);
tools/clang/lib/Sema/SemaOpenMP.cpp
 6173     if (!SemaRef.Context.hasSameType(Diff.get()->getType(), Type)) {
 6191       if (!SemaRef.Context.hasSameType(Diff.get()->getType(), NewType)) {
 6274       !SemaRef.Context.hasSameType(Diff.get()->getType(), VarType)) {
 6278              !SemaRef.Context.hasSameType(
 6733   if (!SemaRef.Context.hasSameType(NewStart.get()->getType(),
 6809     if (!SemaRef.Context.hasSameType(Update.get()->getType(),
11233     if (!S.getASTContext().hasSameType(OMPAllocatorHandleT, AllocatorType)) {
12891                 SemaRef.Context.hasSameType(D->getType(), Ty))
15189                 SemaRef.Context.hasSameType(D->getType(), Type))
tools/clang/lib/Sema/SemaOverload.cpp
 1167        !Context.hasSameType(Old->getDeclaredReturnType(),
 1699       assert(S.Context.hasSameType(
 2704   if (Context.hasSameType(FromPointeeType, ToPointeeType))
 2719   if (Context.hasSameType(FromFunctionType->getReturnType(),
 2729      if (Context.hasSameType(RHS,LHS)) {
 2747      if (Context.hasSameType(FromArgType, ToArgType)) {
 2833   if (Context.hasSameType(FromType, ToType)) {
 2863   if (!Context.hasSameType(FromFunction->getReturnType(),
 2901     if (!Context.hasSameType(O->getUnqualifiedType(),
 3745     return Context.hasSameType(SCS1.getToType(2), SCS2.getToType(2))? Result
 3812   if (S.Context.hasSameType(SCS.getToType(1), UnderlyingType))
 3895              !S.Context.hasSameType(SCS1.getFromType(), SCS2.getFromType())) {
 4264       if (S.Context.hasSameType(FromType1, FromType2) &&
 5371   if (!Context.hasSameType(From->getType(), DestType)) {
 9543   if (Context.hasSameType(VA->getType(), VB->getType()))
 9555           !Context.hasSameType(EnumA->getIntegerType(),
10281     assert(S.Context.hasSameType(Param, NonCanonParam));
10308       if (!T1.isNull() && !T2.isNull() && !S.Context.hasSameType(T1, T2)) {
14148     assert(Context.hasSameType(ICE->getSubExpr()->getType(),
tools/clang/lib/Sema/SemaStmt.cpp
 2586     if (!Context.hasSameType(BeginType, EndType)) {
 2623       if (!Context.hasSameType(BeginType, EndType))
tools/clang/lib/Sema/SemaStmtAsm.cpp
  577     if (Context.hasSameType(InTy, OutTy))
tools/clang/lib/Sema/SemaTemplate.cpp
 6390       !Context.hasSameType(ParamType.getNonLValueExprType(Context),
 6649     if (Context.hasSameType(ParamType, ArgType)) {
 7012              Context.hasSameType(((Expr*) RefExpr.get())->getType(),
 7181     if (!S.Context.hasSameType(OldNTTP->getType(), NewNTTP->getType())) {
 7847     if (Context.hasSameType(CanonType,
 8649         if (Context.hasSameType(Adjusted, Method->getType())) {
 9551     if (PrevTemplate && Prev && !Context.hasSameType(Prev->getType(), R)) {
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
  231       if (YType.isNull() || !Context.hasSameType(XType, YType))
  243         Context.hasSameType(X.getAsType(), Y.getAsType()))
 2166         S.Context.hasSameType(Param.getNullPtrType(), Arg.getNullPtrType()))
 2393       return Context.hasSameType(X.getNullPtrType(), Y.getNullPtrType());
 4132         !Context.hasSameType(SpecializationType, ArgFunctionType))
tools/clang/lib/Sema/TreeTransform.h
13071         assert(getSema().Context.hasSameType(ThisT, T) &&
tools/clang/lib/Serialization/ASTReader.cpp
10859         assert(getContext().hasSameType(FirstField->getType(),
11845         assert(getContext().hasSameType(FirstParam->getType(),
tools/clang/lib/Serialization/ASTReaderDecl.cpp
 2831            TX->getASTContext().hasSameType(TX->getType(), TY->getType());
 2955       return X->getASTContext().hasSameType(TypedefX->getUnderlyingType(),
 3020     if (!C.hasSameType(XT, YT)) {
 3042       if (C.hasSameType(VarX->getType(), VarY->getType()))
 3055         return C.hasSameType(VarXTy->getElementType(), VarYTy->getElementType());
 3080     return X->getASTContext().hasSameType(FDX->getType(), FDY->getType());
tools/clang/tools/extra/clang-tidy/bugprone/VirtualNearMissCheck.cpp
   55   if (Context->hasSameType(DerivedReturnTy, BaseReturnTy))
tools/clang/tools/extra/clang-tidy/misc/NewDeleteOverloadsCheck.cpp
   58       Ctx.hasSameType(FPT->getParamType(1), Ctx.getSizeType()))
tools/clang/tools/extra/clang-tidy/modernize/UseAutoCheck.cpp
  370     if (!Context->hasSameType(V->getType(), E->getType()))
tools/clang/tools/extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp
   50     return Context.hasSameType(Type, Context.FloatTy) ? "0.0f" : "0.0";
  208     if (Context.hasSameType(DestType, Context.FloatTy)) {
tools/lldb/source/Symbol/ClangASTContext.cpp
  150     return context.hasSameType(m1p.getUnqualifiedType(),
 1304   return ast->getASTContext()->hasSameType(type1_qual, type2_qual);
tools/lldb/unittests/Symbol/TestClangASTContext.cpp
   61       context->hasSameType(GetBasicQualType(eBasicTypeBool), context->BoolTy));
   63       context->hasSameType(GetBasicQualType(eBasicTypeChar), context->CharTy));
   64   EXPECT_TRUE(context->hasSameType(GetBasicQualType(eBasicTypeChar16),
   66   EXPECT_TRUE(context->hasSameType(GetBasicQualType(eBasicTypeChar32),
   68   EXPECT_TRUE(context->hasSameType(GetBasicQualType(eBasicTypeDouble),
   70   EXPECT_TRUE(context->hasSameType(GetBasicQualType(eBasicTypeDoubleComplex),
   72   EXPECT_TRUE(context->hasSameType(GetBasicQualType(eBasicTypeFloat),
   74   EXPECT_TRUE(context->hasSameType(GetBasicQualType(eBasicTypeFloatComplex),
   77       context->hasSameType(GetBasicQualType(eBasicTypeHalf), context->HalfTy));
   79       context->hasSameType(GetBasicQualType(eBasicTypeInt), context->IntTy));
   80   EXPECT_TRUE(context->hasSameType(GetBasicQualType(eBasicTypeInt128),
   83       context->hasSameType(GetBasicQualType(eBasicTypeLong), context->LongTy));
   84   EXPECT_TRUE(context->hasSameType(GetBasicQualType(eBasicTypeLongDouble),
   87       context->hasSameType(GetBasicQualType(eBasicTypeLongDoubleComplex),
   89   EXPECT_TRUE(context->hasSameType(GetBasicQualType(eBasicTypeLongLong),
   91   EXPECT_TRUE(context->hasSameType(GetBasicQualType(eBasicTypeNullPtr),
   93   EXPECT_TRUE(context->hasSameType(GetBasicQualType(eBasicTypeObjCClass),
   95   EXPECT_TRUE(context->hasSameType(GetBasicQualType(eBasicTypeObjCID),
   97   EXPECT_TRUE(context->hasSameType(GetBasicQualType(eBasicTypeObjCSel),
   99   EXPECT_TRUE(context->hasSameType(GetBasicQualType(eBasicTypeShort),
  101   EXPECT_TRUE(context->hasSameType(GetBasicQualType(eBasicTypeSignedChar),
  103   EXPECT_TRUE(context->hasSameType(GetBasicQualType(eBasicTypeUnsignedChar),
  105   EXPECT_TRUE(context->hasSameType(GetBasicQualType(eBasicTypeUnsignedInt),
  107   EXPECT_TRUE(context->hasSameType(GetBasicQualType(eBasicTypeUnsignedInt128),
  109   EXPECT_TRUE(context->hasSameType(GetBasicQualType(eBasicTypeUnsignedLong),
  111   EXPECT_TRUE(context->hasSameType(GetBasicQualType(eBasicTypeUnsignedLongLong),
  113   EXPECT_TRUE(context->hasSameType(GetBasicQualType(eBasicTypeUnsignedShort),
  116       context->hasSameType(GetBasicQualType(eBasicTypeVoid), context->VoidTy));
  117   EXPECT_TRUE(context->hasSameType(GetBasicQualType(eBasicTypeWChar),