Lines Matching refs:Context

224     if (ExceptionsSeen.insert(Self->Context.getCanonicalType(E)).second)
269 InitializedEntity Entity = InitializedEntity::InitializeParameter(Context,
317 Param->setDefaultArg(new (Context) OpaqueValueExpr(
383 Param->setDefaultArg(new(Context)
859 auto *BD = BindingDecl::Create(Context, DC, B.NameLoc, B.Name);
961 S.Context.getQualifiedType(VT->getElementType(),
971 S.Context.getQualifiedType(CT->getElementType(),
1003 S.Diag(Loc, DiagID) << printTemplateArgs(S.Context.getPrintingPolicy(),
1042 printTemplateArgs(S.Context.getPrintingPolicy(), Args,
1058 TemplateArgument Arg(S.Context, S.Context.MakeIntValue(I, T), T);
1098 << printTemplateArgs(S.Context.getPrintingPolicy(), Args,
1121 getTrivialIntegralTemplateArgument(S, Loc, S.Context.getSizeType(), I));
1135 << printTemplateArgs(S.Context.getPrintingPolicy(), Args,
1142 return S.Context.getTypeDeclType(TD);
1216 E = ImplicitCastExpr::Create(S.Context, E.get()->getType(), CK_NoOp,
1222 getTrivialIntegralTemplateArgument(S, Loc, S.Context.getSizeType(), I));
1238 S.Context, nullptr, NestedNameSpecifierLoc(), SourceLocation(),
1262 S.Context, Src->getDeclContext(), Loc, Loc,
1264 S.Context.getTrivialTypeSourceInfo(T, Loc), Src->getStorageClass());
1329 else if (!S.Context.hasSameType(P.back().Base->getType(),
1343 if (Paths.isAmbiguous(S.Context.getCanonicalType(BaseType))) {
1350 S.CheckBaseClassAccess(Loc, BaseType, S.Context.getRecordType(RD),
1384 QualType BaseType = S.Context.getQualifiedType(S.Context.getRecordType(RD),
1479 B->setType(Context.DependentTy);
1490 if (auto *CAT = Context.getAsConstantArrayType(DecompType)) {
1551 assert(Context.hasSameType(New->getType(), Old->getType()) &&
1645 return !T->isLiteralType(SemaRef.Context);
2501 << BaseType << Context.getTypeDeclType(Class);
2519 return new (Context) CXXBaseSpecifier(SpecifierRange, Virtual,
2538 if (Context.getTargetInfo().getCXXABI().isMicrosoft()) {
2606 return new (Context) CXXBaseSpecifier(SpecifierRange, Virtual,
2668 NoteIndirectBases(ASTContext &Context, IndirectBaseSet &Set,
2678 QualType Base = Context.getCanonicalType(BaseSpec.getType())
2682 NoteIndirectBases(Context, Set, Base);
2709 = Context.getCanonicalType(Bases[idx]->getType());
2722 Context.Deallocate(Bases[idx]);
2732 NoteIndirectBases(Context, IndirectBaseTypes, NewBaseType);
2747 Class->addAttr(WeakAttr::CreateImplicit(Context));
2765 CanQualType CanonicalBase = Context.getCanonicalType(BaseType)
2786 Context.Deallocate(Bases[idx]);
2908 if (!Paths.isAmbiguous(Context.getCanonicalType(Base).getUnqualifiedType()))
3004 PathDisplayStr += Context.getTypeDeclType(Paths.getOrigin()).getAsString();
3023 AccessSpecDecl *ASDecl = AccessSpecDecl::Create(Context, Access, CurContext,
3349 Context.getPrintingPolicy())) {
3495 Member->addAttr(OverrideAttr::Create(Context, VS.getOverrideLoc(),
3499 Context, VS.getFinalLoc(), AttributeCommonInfo::AS_Keyword,
3558 : Inherited(S.Context), S(S), Decls(Decls), BaseClasses(BaseClasses),
3611 bool AllPODFields = FieldME->getType().isPODType(S.Context);
3624 if (!FieldME->getType().isPODType(S.Context))
4047 if (SemaRef.Context.hasSameUnqualifiedType(BaseType, Base.getType())) {
4065 SemaRef.Context.getTypeDeclType(ClassDecl),
4109 Expr *List = ParenListExpr::Create(Context, LParenLoc, Args, RParenLoc);
4242 SS.getWithLocInContext(Context),
4247 TInfo = Context.CreateTypeSourceInfo(BaseType);
4253 TL.setQualifierLoc(SS.getWithLocInContext(Context));
4279 Context.getTypeDeclType(Type),
4307 BaseType = Context.getTypeDeclType(TyD);
4310 BaseType = Context.getElaboratedType(ETK_None, SS.getScopeRep(),
4312 TInfo = Context.CreateTypeSourceInfo(BaseType);
4316 TL.setQualifierLoc(SS.getWithLocInContext(Context));
4322 TInfo = Context.getTrivialTypeSourceInfo(BaseType, IdLoc);
4393 return new (Context) CXXCtorInitializer(Context, DirectMember, IdLoc,
4397 return new (Context) CXXCtorInitializer(Context, IndirectMember, IdLoc,
4455 return new (Context) CXXCtorInitializer(Context, TInfo, InitRange.getBegin(),
4501 if (Context.hasSameUnqualifiedType(QualType(ClassDecl->getTypeForDecl(),0),
4522 << BaseType << Context.getTypeDeclType(ClassDecl)
4530 return new (Context) CXXCtorInitializer(Context, BaseTInfo,
4557 InitializedEntity::InitializeBase(Context, BaseSpec, VirtualBaseSpec);
4585 return new (Context) CXXCtorInitializer(Context, BaseTInfo,
4598 TypeSourceInfo *TargetLoc = SemaRef.Context.getTrivialTypeSourceInfo(
4622 = InitializedEntity::InitializeBase(SemaRef.Context, BaseSpec,
4644 DeclRefExpr::Create(SemaRef.Context, NestedNameSpecifierLoc(),
4653 SemaRef.Context.getQualifiedType(BaseSpec->getType().getUnqualifiedType(),
4681 new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context,
4682 SemaRef.Context.getTrivialTypeSourceInfo(BaseSpec->getType(),
4714 if (Field->isZeroLengthBitField(SemaRef.Context))
4718 DeclRefExpr::Create(SemaRef.Context, NestedNameSpecifierLoc(),
4774 CXXMemberInit = new (SemaRef.Context) CXXCtorInitializer(
4775 SemaRef.Context, Indirect, Loc, Loc, MemberInit.getAs<Expr>(), Loc);
4777 CXXMemberInit = new (SemaRef.Context) CXXCtorInitializer(
4778 SemaRef.Context, Field, Loc, Loc, MemberInit.getAs<Expr>(), Loc);
4786 SemaRef.Context.getBaseElementType(Field->getType());
4806 CXXMemberInit = new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context,
4812 CXXMemberInit = new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context,
4824 << SemaRef.Context.getTagDeclType(Constructor->getParent())
4834 << SemaRef.Context.getTagDeclType(Constructor->getParent())
4845 = new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context, Field,
4847 new (SemaRef.Context) ImplicitValueInitExpr(Field->getType()),
4898 if (Init->getInit()->HasSideEffects(S.Context))
4949 static bool isIncompleteOrZeroLengthArrayType(ASTContext &Context, QualType T) {
4953 while (const ConstantArrayType *ArrayT = Context.getAsConstantArrayType(T)) {
5000 Init = new (SemaRef.Context)
5001 CXXCtorInitializer(SemaRef.Context, Indirect, SourceLocation(),
5004 Init = new (SemaRef.Context)
5005 CXXCtorInitializer(SemaRef.Context, Field, SourceLocation(),
5011 if (isIncompleteOrZeroLengthArrayType(SemaRef.Context, Field->getType()))
5037 new (Context) CXXCtorInitializer*[1];
5061 new (Context) CXXCtorInitializer*[Initializers.size()];
5215 new (Context) CXXCtorInitializer*[NumInitializers];
5241 static const void *GetKeyForBase(ASTContext &Context, QualType BaseType) {
5242 return Context.getCanonicalType(BaseType).getTypePtr();
5245 static const void *GetKeyForMember(ASTContext &Context,
5248 return GetKeyForBase(Context, QualType(Member->getBaseClass(), 0));
5296 IdealInitKeys.push_back(GetKeyForBase(SemaRef.Context, VBase.getType()));
5302 IdealInitKeys.push_back(GetKeyForBase(SemaRef.Context, Base.getType()));
5324 const void *InitKey = GetKeyForMember(SemaRef.Context, Inits[InitIndex]);
5497 const void *Key = GetKeyForMember(Context, Init);
5502 const void *Key = GetKeyForMember(Context, Init);
5549 if (isIncompleteOrZeroLengthArrayType(Context, Field->getType()))
5552 QualType FieldType = Context.getBaseElementType(Field->getType());
5585 if (Context.getTargetInfo().getCXXABI().isMicrosoft()) {
5620 Context.getTypeDeclType(ClassDecl));
5655 << Context.getTypeDeclType(ClassDecl) << VBase.getType(),
5656 Context.getTypeDeclType(ClassDecl)) ==
5659 Context.getTypeDeclType(ClassDecl), VBase.getType(),
5684 const auto *RD = Context.getBaseElementType(T)->getAsCXXRecordDecl();
5706 T = Context.getBaseElementType(T);
5773 AbstractType(S.Context.getCanonicalType(
5774 S.Context.getTypeDeclType(Record))),
5856 T = Info.S.Context.getBaseElementType(T);
5959 if (S.Context.getTargetInfo().getTriple().isWindowsGNUEnvironment())
6017 if (!S.Context.getTargetInfo().getCXXABI().isMicrosoft())
6183 if (Context.getTargetInfo().shouldDLLImportComdatSymbols() && !ClassAttr) {
6203 if (Context.getTargetInfo().shouldDLLImportComdatSymbols() &&
6241 !Context.getTargetInfo().getTriple().isWindowsGNUEnvironment()) {
6268 if (!Context.getTargetInfo().shouldDLLImportComdatSymbols() &&
6557 bool isAArch64 = S.Context.getTargetInfo().getTriple().isAArch64();
6699 diag::warn_non_virtual_dtor) << Context.getRecordType(Record);
6721 << Context.getRecordType(Record) << FA->isSpelledAsSealed();
6913 if (Record->isMsStruct(Context) && !Context.getLangOpts().MSBitfields &&
6922 Context.getLangOpts().getClangABICompat() <= LangOptions::ClangABI::Ver4;
6924 Context.getTargetInfo().getCallingConvKind(ClangABICompat4);
6938 if (Context.getTargetInfo().getCXXABI().areArgsDestroyedLeftToRightInCallee())
7192 QualType BaseType = S.Context.getBaseElementType(F->getType());
7268 S.Context.getDefaultCallingConvention(/*IsVariadic=*/false,
7359 QualType ReturnType = Context.VoidTy;
7364 QualType DeclType = Context.getTypeDeclType(RD);
7365 DeclType = Context.getAddrSpaceQualType(DeclType, MD->getMethodQualifiers().getAddressSpace());
7366 QualType ExpectedReturnType = Context.getLValueReferenceType(DeclType);
7368 if (!Context.hasSameType(ReturnType, ExpectedReturnType)) {
7470 MD->setType(Context.getFunctionType(ReturnType,
7574 S.Context.getQualifiedType(Base.getType(), Quals),
7593 S.Context.getQualifiedType(Field->getType(), FieldQuals);
7606 const ArrayType *AT = S.Context.getAsArrayType(Type);
7795 : S.Context.getRecordType(RD);
7851 if (auto *Info = S.Context.CompCategories.lookupInfoForType(
7914 S.Context.CompCategories.lookupInfoForType(FD->getReturnType())) {
8058 VarDecl *EqualVD = S.Context.CompCategories.getInfoForType(StrongOrdering)
8161 QualType SizeType = S.Context.getSizeType();
8162 Size = Size.zextOrTrunc(S.Context.getTypeSize(SizeType));
8170 IterationVarName = &S.Context.Idents.get(OS.str());
8173 S.Context, S.CurContext, Loc, Loc, IterationVarName, SizeType,
8174 S.Context.getTrivialTypeSourceInfo(SizeType, Loc), SC_None);
8175 llvm::APInt Zero(S.Context.getTypeSize(SizeType), 0);
8177 IntegerLiteral::Create(S.Context, Zero, SizeType, Loc));
8178 Stmt *Init = new (S.Context) DeclStmt(DeclGroupRef(IterationVar), Loc, Loc);
8191 IntegerLiteral::Create(S.Context, Size, SizeType, Loc));
8272 IdentifierInfo *Name = &S.Context.Idents.get("cmp");
8274 VarDecl::Create(S.Context, S.CurContext, Loc, Loc, Name, R,
8275 S.Context.getTrivialTypeSourceInfo(R, Loc), SC_None);
8277 Stmt *InitStmt = new (S.Context) DeclStmt(DeclGroupRef(VD), Loc, Loc);
8283 llvm::APInt ZeroVal(S.Context.getIntWidth(S.Context.IntTy), 0);
8285 IntegerLiteral::Create(S.Context, ZeroVal, S.Context.IntTy, Loc);
8328 if (E->isRValue() && S.Context.hasSameType(E->getType(), R))
8331 S.Context.getTrivialTypeSourceInfo(R, Loc), E,
8377 Context, Operators.pairs()));
8387 QualType ExpectedParmType1 = Context.getRecordType(RD);
8389 Context.getLValueReferenceType(ExpectedParmType1.withConst());
8394 !Context.hasSameType(Param->getType(), ExpectedParmType1) &&
8395 !Context.hasSameType(Param->getType(), ExpectedParmType2)) {
8408 !Context.hasSameType(FD->getParamDecl(0)->getType(),
8439 MD->setType(Context.getFunctionType(FPT->getReturnType(),
8452 !Context.hasSameType(FD->getDeclaredReturnType(), Context.BoolTy)) {
8454 << (int)DCK << FD->getDeclaredReturnType() << Context.BoolTy
8463 !Context.hasSameType(FD->getDeclaredReturnType(),
8464 Context.getAutoDeductType())) {
8467 << (int)DCK << FD->getDeclaredReturnType() << Context.AutoDeductTy
8525 Context.adjustDeducedFunctionResultType(
8567 FD->setType(Context.getFunctionType(FPT->getReturnType(),
8612 FD->markUsed(Context);
8647 EnterExpressionEvaluationContext Context(
8852 objectTy = S.Context.getTypeDeclType(MD->getParent());
8857 objectTy = S.Context.getTypeDeclType(target->getParent());
9013 QualType FieldType = S.Context.getBaseElementType(FD->getType());
9078 QualType UnionFieldType = S.Context.getBaseElementType(UI->getType());
9229 Context.DeclarationNames.getCXXOperatorName(OO_Delete);
9514 QualType FieldType = S.Context.getBaseElementType(FI->getType());
9558 QualType Ty = Context.getRecordType(RD);
9596 << Context.getLValueReferenceType(
9597 Context.getRecordType(RD).withConst());
9613 << Context.getRValueReferenceType(Context.getRecordType(RD));
10010 else if (Context.getTargetInfo().getCXXABI().isMicrosoft() &&
10074 findImplicitlyDeclaredEqualityComparisons(Context, ClassDecl,
10302 if (Proto->getReturnType() == Context.VoidTy && !D.isInvalidType())
10309 return Context.getFunctionType(Context.VoidTy, Proto->getParamTypes(), EPI);
10331 QualType ClassTy = Context.getTagDeclType(ClassDecl);
10332 if (Context.getCanonicalType(ParamType).getUnqualifiedType() == ClassTy) {
10502 return Context.getFunctionType(Context.VoidTy, None, EPI);
10666 ConvType = Context.getPointerType(ConvType);
10670 ConvType = Context.getPointerType(ConvType);
10678 R = Context.getFunctionType(ConvType, None, Proto->getExtProtoInfo());
10699 QualType ConvType = Context.getCanonicalType(Conversion->getConversionType());
10707 = Context.getCanonicalType(Context.getTypeDeclType(ClassDecl));
10716 ConvType = Context.getCanonicalType(ConvType).getUnqualifiedType();
10850 Context.hasSameTemplateName(SpecifiedName, GuidedTemplate);
10980 NamespaceDecl *Namespc = NamespaceDecl::Create(Context, CurContext, IsInline,
11027 UD = UsingDirectiveDecl::Create(Context, Parent,
11074 StdBadAlloc.get(Context.getExternalSource()));
11078 return cast_or_null<EnumDecl>(StdAlignValT.get(Context.getExternalSource()));
11083 StdNamespace.get(Context.getExternalSource()));
11143 NestedNameSpecifier::Create(Context, nullptr, getStdNamespace());
11144 return Context.getElaboratedType(ETK_None, NNS, Info->getType());
11149 ComparisonCategoryInfo *Info = Context.CompCategories.lookupInfo(Kind);
11219 !VD->isUsableInConstantExpressions(Context))
11242 StdNamespace = NamespaceDecl::Create(Context,
11243 Context.getTranslationUnitDecl(),
11357 Context.getTrivialTypeSourceInfo(Element,
11359 return Context.getCanonicalType(
11501 UDir = UsingDirectiveDecl::Create(Context, CurContext, UsingLoc, NamespcLoc,
11502 SS.getWithLocInContext(Context),
11621 IsEquivalentForUsingDecl(ASTContext &Context, NamedDecl *D1, NamedDecl *D2) {
11627 return Context.hasSameType(TD1->getUnderlyingType(),
11723 if (IsEquivalentForUsingDecl(Context, D, Target)) {
11825 Context, CurContext, UD->getLocation(), UD, Orig, IsVirtualBase);
11827 Shadow = UsingShadowDecl::Create(Context, CurContext, UD->getLocation(), UD,
12017 UsingName.setName(Context.DeclarationNames.getCXXConstructorName(
12018 Context.getCanonicalType(Context.getRecordType(RD))));
12075 NestedNameSpecifierLoc QualifierLoc = SS.getWithLocInContext(Context);
12079 D = UnresolvedUsingTypenameDecl::Create(Context, CurContext,
12085 D = UnresolvedUsingValueDecl::Create(Context, CurContext, UsingLoc,
12095 UsingDecl::Create(Context, CurContext, UsingLoc, QualifierLoc,
12122 Context.getTypeDeclType(cast<CXXRecordDecl>(CurContext)));
12168 Builder.MakeTrivial(Context, Corrected.getCorrectionSpecifier(),
12170 QualifierLoc = Builder.getWithLocInContext(Context);
12176 UsingName.setName(Context.DeclarationNames.getCXXConstructorName(
12177 Context.getCanonicalType(Context.getRecordType(CurClass))));
12264 UsingPackDecl::Create(Context, CurContext, InstantiatedFrom, Expansions);
12363 if (Context.getCanonicalNestedNameSpecifier(Qual) !=
12364 Context.getCanonicalNestedNameSpecifier(DQual))
12592 TInfo = Context.getTrivialTypeSourceInfo(Context.IntTy,
12611 TypeAliasDecl *NewTD = TypeAliasDecl::Create(Context, CurContext, UsingLoc,
12674 !Context.hasSameType(OldTD->getUnderlyingType(),
12694 TypeAliasTemplateDecl::Create(Context, CurContext, UsingLoc,
12790 NamespaceAliasDecl::Create(Context, CurContext, NamespaceLoc, AliasLoc,
12791 Alias, SS.getWithLocInContext(Context),
12851 } else if (auto *RT = S.Context.getBaseElementType(FD->getType())
12878 ExplicitSpec.getExpr(), Context.BoolTy, Result, CCEK_ExplicitBool);
12916 S.Context.getRecordType(ClassDecl),
13013 auto QT = Context.getFunctionType(ResultTy, Args, EPI);
13038 = Context.getCanonicalType(Context.getTypeDeclType(ClassDecl));
13041 = Context.DeclarationNames.getCXXConstructorName(ClassType);
13044 Context, ClassDecl, ClassLoc, NameInfo, /*Type*/ QualType(),
13059 setupImplicitSpecialMemberType(DefaultCon, Context.VoidTy, None);
13112 Constructor->setBody(new (Context) CompoundStmt(Loc));
13113 Constructor->markUsed(Context);
13152 Context.getTrivialTypeSourceInfo(BaseCtor->getType(), UsingLoc);
13166 Context, Derived, UsingLoc, NameInfo, TInfo->getType(), TInfo,
13180 DerivedCtor->setType(Context.getFunctionType(FPT->getReturnType(),
13187 Context.getTrivialTypeSourceInfo(FPT->getParamType(I), UsingLoc);
13189 Context, DerivedCtor, UsingLoc, UsingLoc, /*IdentifierInfo=*/nullptr,
13272 ExprResult Init = new (Context) CXXInheritedCtorInitExpr(
13275 auto *TInfo = Context.getTrivialTypeSourceInfo(B.getType(), InitLoc);
13276 Inits.push_back(new (Context) CXXCtorInitializer(
13277 Context, TInfo, VBase, InitLoc, Init.get(), InitLoc,
13290 Constructor->setBody(new (Context) CompoundStmt(InitLoc));
13291 Constructor->markUsed(Context);
13317 = Context.getCanonicalType(Context.getTypeDeclType(ClassDecl));
13320 = Context.DeclarationNames.getCXXDestructorName(ClassType);
13323 CXXDestructorDecl::Create(Context, ClassDecl, ClassLoc, NameInfo,
13338 setupImplicitSpecialMemberType(Destructor, Context.VoidTy, None);
13401 Destructor->setBody(new (Context) CompoundStmt(Loc));
13402 Destructor->markUsed(Context);
13415 assert(Context.getTargetInfo().getCXXABI().isMicrosoft() &&
13493 Destructor->setType(Context.getFunctionType(Context.VoidTy, None, EPI));
13640 QualType SizeType = S.Context.getSizeType();
13641 llvm::APInt Size(S.Context.getTypeSize(SizeType),
13642 S.Context.getTypeSizeInChars(T).getQuantity());
13649 S.Context, From, UO_AddrOf, S.Context.getPointerType(From->getType()),
13653 S.Context, To, UO_AddrOf, S.Context.getPointerType(To->getType()),
13665 LookupResult R(S, &S.Context.Idents.get(MemCpyName), Loc,
13675 ExprResult MemCpyRef = S.BuildDeclRefExpr(MemCpy, S.Context.BuiltinFnTy,
13680 To, From, IntegerLiteral::Create(S.Context, Size, SizeType, Loc)
13740 = S.Context.DeclarationNames.getCXXOperatorName(OO_Equal);
13783 const Type *CanonicalT = S.Context.getCanonicalType(T.getTypePtr());
13784 SS.MakeTrivial(S.Context,
13785 NestedNameSpecifier::Create(S.Context, nullptr, false,
13822 const ConstantArrayType *ArrayTy = S.Context.getAsConstantArrayType(T);
13839 QualType SizeType = S.Context.getSizeType();
13847 IterationVarName = &S.Context.Idents.get(OS.str());
13849 VarDecl *IterationVar = VarDecl::Create(S.Context, S.CurContext, Loc, Loc,
13851 S.Context.getTrivialTypeSourceInfo(SizeType, Loc),
13855 llvm::APInt Zero(S.Context.getTypeSize(SizeType), 0);
13856 IterationVar->setInit(IntegerLiteral::Create(S.Context, Zero, SizeType, Loc));
13863 Stmt *InitStmt = new (S.Context) DeclStmt(DeclGroupRef(IterationVar),Loc,Loc);
13887 = ArrayTy->getSize().zextOrTrunc(S.Context.getTypeSize(SizeType));
13889 S.Context, IterationVarRefRVal.build(S, Loc),
13890 IntegerLiteral::Create(S.Context, Upper, SizeType, Loc), BO_NE,
13891 S.Context.BoolTy, VK_RValue, OK_Ordinary, Loc, S.CurFPFeatureOverrides());
13897 S.Context, IterationVarRef.build(S, Loc), UO_PreInc, SizeType, VK_LValue,
13913 T.isTriviallyCopyableType(S.Context))
13939 QualType ArgType = Context.getTypeDeclType(ClassDecl);
13942 ArgType = Context.getAddrSpaceQualType(ArgType, AS);
13943 QualType RetType = Context.getLValueReferenceType(ArgType);
13948 ArgType = Context.getLValueReferenceType(ArgType);
13956 DeclarationName Name = Context.DeclarationNames.getCXXOperatorName(OO_Equal);
13960 Context, ClassDecl, ClassLoc, NameInfo, QualType(),
13979 ParmVarDecl *FromParam = ParmVarDecl::Create(Context, CopyAssignment,
14145 CastBuilder From(OtherRef, Context.getQualifiedType(BaseType, OtherQuals),
14151 Context.getQualifiedType(
14184 << Context.getTagDeclType(ClassDecl) << 0 << Field->getDeclName();
14191 QualType BaseType = Context.getBaseElementType(Field->getType());
14194 << Context.getTagDeclType(ClassDecl) << 1 << Field->getDeclName();
14201 if (Field->isZeroLengthBitField(Context))
14260 CopyAssignOperator->markUsed(Context);
14277 QualType ArgType = Context.getTypeDeclType(ClassDecl);
14280 ArgType = Context.getAddrSpaceQualType(ArgType, AS);
14281 QualType RetType = Context.getLValueReferenceType(ArgType);
14282 ArgType = Context.getRValueReferenceType(ArgType);
14290 DeclarationName Name = Context.DeclarationNames.getCXXOperatorName(OO_Equal);
14294 Context, ClassDecl, ClassLoc, NameInfo, QualType(),
14313 MoveAssignment->setType(Context.getFunctionType(RetType, ArgType, EPI));
14316 ParmVarDecl *FromParam = ParmVarDecl::Create(Context, MoveAssignment,
14521 Context.getQualifiedType(
14554 << Context.getTagDeclType(ClassDecl) << 0 << Field->getDeclName();
14561 QualType BaseType = Context.getBaseElementType(Field->getType());
14564 << Context.getTagDeclType(ClassDecl) << 1 << Field->getDeclName();
14571 if (Field->isZeroLengthBitField(Context))
14634 MoveAssignOperator->markUsed(Context);
14652 QualType ClassType = Context.getTypeDeclType(ClassDecl);
14660 ArgType = Context.getAddrSpaceQualType(ArgType, AS);
14662 ArgType = Context.getLValueReferenceType(ArgType);
14669 = Context.DeclarationNames.getCXXConstructorName(
14670 Context.getCanonicalType(ClassType));
14677 Context, ClassDecl, ClassLoc, NameInfo, QualType(), /*TInfo=*/nullptr,
14693 setupImplicitSpecialMemberType(CopyConstructor, Context.VoidTy, ArgType);
14696 ParmVarDecl *FromParam = ParmVarDecl::Create(Context, CopyConstructor,
14773 CopyConstructor->markUsed(Context);
14789 QualType ClassType = Context.getTypeDeclType(ClassDecl);
14794 ArgType = Context.getAddrSpaceQualType(ClassType, AS);
14795 ArgType = Context.getRValueReferenceType(ArgType);
14802 = Context.DeclarationNames.getCXXConstructorName(
14803 Context.getCanonicalType(ClassType));
14811 Context, ClassDecl, ClassLoc, NameInfo, QualType(), /*TInfo=*/nullptr,
14827 setupImplicitSpecialMemberType(MoveConstructor, Context.VoidTy, ArgType);
14830 ParmVarDecl *FromParam = ParmVarDecl::Create(Context, MoveConstructor,
14900 MoveConstructor->markUsed(Context);
14951 Invoker->markUsed(Context);
14954 Invoker->setBody(new (Context) CompoundStmt(Conv->getLocation()));
14961 Conv->setBody(CompoundStmt::Create(Context, Return, Conv->getLocation(),
14963 Conv->markUsed(Context);
14996 Context, BuildBlock.get()->getType(), CK_CopyAndAutoreleaseBlockObject,
15016 Conv->setBody(CompoundStmt::Create(Context, ReturnS, Conv->getLocation(),
15018 Conv->markUsed(Context);
15072 Context, cast<CXXRecordDecl>(FoundDecl->getDeclContext()));
15133 Context, DeclInitType, ConstructLoc, Constructor, Elidable, ExprArgs,
15146 return CXXDefaultInitExpr::Create(Context, Loc, Field, CurContext);
15177 return CXXDefaultInitExpr::Create(Context, Loc, Field, CurContext);
15328 auto &Ctx = SemaRef.Context;
15355 if (SemaRef.Context.getCanonicalType(ResultType) != ExpectedResultType) {
15392 if (SemaRef.Context.getCanonicalType(FirstParamType).getUnqualifiedType() !=
15416 SemaRef.Context.getCanonicalType(SemaRef.Context.getSizeType());
15421 if (CheckOperatorNewDeleteTypes(SemaRef, FnDecl, SemaRef.Context.VoidPtrTy,
15454 ? SemaRef.Context.getCanonicalType(SemaRef.Context.getPointerType(
15455 SemaRef.Context.getRecordType(MD->getParent())))
15456 : SemaRef.Context.VoidPtrTy;
15461 SemaRef, FnDecl, SemaRef.Context.VoidTy, ExpectedFirstParamType,
15628 SemaRef.Context.hasSameType(PmDecl->getType(), SemaRef.Context.CharTy))
15720 Context.hasSameType(ParamType, Context.CharTy) ||
15721 Context.hasSameType(ParamType, Context.WideCharTy) ||
15722 Context.hasSameType(ParamType, Context.Char8Ty) ||
15723 Context.hasSameType(ParamType, Context.Char16Ty) ||
15724 Context.hasSameType(ParamType, Context.Char32Ty)) {
15729 if (!(Context.hasSameType(InnerType.getUnqualifiedType(),
15730 Context.CharTy) &&
15740 << ParamType << Context.LongDoubleTy << Param->getSourceRange();
15745 << ParamType << Context.UnsignedLongLongTy << Param->getSourceRange();
15786 if (!(Context.hasSameType(InnerType, Context.CharTy) ||
15787 Context.hasSameType(InnerType, Context.WideCharTy) ||
15788 Context.hasSameType(InnerType, Context.Char8Ty) ||
15789 Context.hasSameType(InnerType, Context.Char16Ty) ||
15790 Context.hasSameType(InnerType, Context.Char32Ty))) {
15802 if (!Context.hasSameType(SecondParamType, Context.getSizeType())) {
15805 << SecondParamType << Context.getSizeType()
15871 LinkageSpecDecl *D = LinkageSpecDecl::Create(Context, CurContext, ExternLoc,
15897 Decl *ED = EmptyDecl::Create(Context, CurContext, SemiLoc);
15919 ExDeclType = Context.getArrayDecayedType(ExDeclType);
15921 ExDeclType = Context.getPointerType(ExDeclType);
15982 VarDecl *ExDecl = VarDecl::Create(Context, CurContext, StartLoc, Loc, Name,
16005 QualType initType = Context.getExceptionObjectType(ExDeclType);
16013 new (Context) OpaqueValueExpr(Loc, initType, VK_LValue, OK_Ordinary);
16048 TInfo = Context.getTrivialTypeSourceInfo(Context.IntTy,
16175 Decl *Decl = StaticAssertDecl::Create(Context, CurContext, StaticAssertLoc,
16251 return FriendDecl::Create(Context, CurContext,
16321 NestedNameSpecifierLoc QualifierLoc = SS.getWithLocInContext(Context);
16329 TypeSourceInfo *TSI = Context.CreateTypeSourceInfo(T);
16343 FriendDecl *Friend = FriendDecl::Create(Context, CurContext, NameLoc,
16360 QualType T = Context.getDependentNameType(ETK, SS.getScopeRep(), Name);
16361 TypeSourceInfo *TSI = Context.CreateTypeSourceInfo(T);
16364 TL.setQualifierLoc(SS.getWithLocInContext(Context));
16367 FriendDecl *Friend = FriendDecl::Create(Context, CurContext, NameLoc,
16467 D = FriendTemplateDecl::Create(Context, CurContext, Loc,
16755 FriendDecl *FrD = FriendDecl::Create(Context, CurContext,
17013 if (Context.hasSameType(NewTy, OldTy) ||
17047 if (!Context.hasSameUnqualifiedType(NewClassTy, OldClassTy)) {
17278 if (Context.getTargetInfo().getCXXABI().isMicrosoft()) {
17327 const CXXMethodDecl *KeyFunction = Context.getCurrentKeyFunction(Class);
17379 if (Context.getTargetInfo().getCXXABI().hasKeyFunctions() &&
17470 new (Context) CXXCtorInitializer(Context, Field, SourceLocation(),
17478 Context.getBaseElementType(Field->getType())
17485 << Context.getBaseElementType(Field->getType()));
17489 ObjCImplementation->setIvarInitializers(Context,
17751 Context.BoolTy) &&
17788 Context.adjustExceptionSpec(Method, ESI, /*AsWritten*/true);
17823 T = Context.IntTy;
17824 TInfo = Context.getTrivialTypeSourceInfo(T, Loc);
17871 MSPropertyDecl::Create(Context, Record, Loc, II, T, TInfo, TSSL,
17927 Context, ExplicitParams->getTemplateLoc(),
17934 Context, SourceLocation(), SourceLocation(), FSI.TemplateParams,