Lines Matching refs:Context
52 PrintingPolicy Sema::getPrintingPolicy(const ASTContext &Context, in getPrintingPolicy() argument
54 PrintingPolicy Policy = Context.getPrintingPolicy(); in getPrintingPolicy()
55 Policy.Bool = Context.getLangOpts().Bool; in getPrintingPolicy()
58 BoolMacro = PP.getMacroInfo(&Context.Idents.get("bool"))) { in getPrintingPolicy()
70 PushDeclContext(S, Context.getTranslationUnitDecl()); in ActOnTranslationUnitScope()
78 LangOpts(pp.getLangOpts()), PP(pp), Context(ctxt), Consumer(consumer), in Sema()
117 NSAPIObj.reset(new NSAPI(Context)); in Sema()
123 Diags.SetArgToStringFn(&FormatASTNodeDiagnosticArgument, &Context); in Sema()
134 DeclarationName DN = &Context.Idents.get(Name); in addImplicitTypedef()
136 PushOnScopeChains(Context.buildImplicitTypedef(T, Name), TUScope); in addImplicitTypedef()
145 = dyn_cast_or_null<ExternalSemaSource>(Context.getExternalSource())) in Initialize()
156 if (Context.getTargetInfo().hasInt128Type()) { in Initialize()
159 DeclarationName Int128 = &Context.Idents.get("__int128_t"); in Initialize()
161 PushOnScopeChains(Context.getInt128Decl(), TUScope); in Initialize()
163 DeclarationName UInt128 = &Context.Idents.get("__uint128_t"); in Initialize()
165 PushOnScopeChains(Context.getUInt128Decl(), TUScope); in Initialize()
173 DeclarationName SEL = &Context.Idents.get("SEL"); in Initialize()
175 PushOnScopeChains(Context.getObjCSelDecl(), TUScope); in Initialize()
179 DeclarationName Id = &Context.Idents.get("id"); in Initialize()
181 PushOnScopeChains(Context.getObjCIdDecl(), TUScope); in Initialize()
184 DeclarationName Class = &Context.Idents.get("Class"); in Initialize()
186 PushOnScopeChains(Context.getObjCClassDecl(), TUScope); in Initialize()
189 DeclarationName Protocol = &Context.Idents.get("Protocol"); in Initialize()
191 PushOnScopeChains(Context.getObjCProtocolDecl(), TUScope); in Initialize()
197 IdResolver.begin(&Context.Idents.get("type_info")) == IdResolver.end()) in Initialize()
198 PushOnScopeChains(Context.buildImplicitRecord("type_info", TTK_Class), in Initialize()
201 addImplicitTypedef("size_t", Context.getSizeType()); in Initialize()
206 addImplicitTypedef("image1d_t", Context.OCLImage1dTy); in Initialize()
207 addImplicitTypedef("image1d_array_t", Context.OCLImage1dArrayTy); in Initialize()
208 addImplicitTypedef("image1d_buffer_t", Context.OCLImage1dBufferTy); in Initialize()
209 addImplicitTypedef("image2d_t", Context.OCLImage2dTy); in Initialize()
210 addImplicitTypedef("image2d_array_t", Context.OCLImage2dArrayTy); in Initialize()
211 addImplicitTypedef("image3d_t", Context.OCLImage3dTy); in Initialize()
212 addImplicitTypedef("sampler_t", Context.OCLSamplerTy); in Initialize()
213 addImplicitTypedef("event_t", Context.OCLEventTy); in Initialize()
215 addImplicitTypedef("image2d_depth_t", Context.OCLImage2dDepthTy); in Initialize()
217 Context.OCLImage2dArrayDepthTy); in Initialize()
218 addImplicitTypedef("image2d_msaa_t", Context.OCLImage2dMSAATy); in Initialize()
219 addImplicitTypedef("image2d_array_msaa_t", Context.OCLImage2dArrayMSAATy); in Initialize()
220 addImplicitTypedef("image2d_msaa_depth_t", Context.OCLImage2dMSAADepthTy); in Initialize()
222 Context.OCLImage2dArrayMSAADepthTy); in Initialize()
223 addImplicitTypedef("clk_event_t", Context.OCLClkEventTy); in Initialize()
224 addImplicitTypedef("queue_t", Context.OCLQueueTy); in Initialize()
225 addImplicitTypedef("ndrange_t", Context.OCLNDRangeTy); in Initialize()
226 addImplicitTypedef("reserve_id_t", Context.OCLReserveIDTy); in Initialize()
227 addImplicitTypedef("atomic_int", Context.getAtomicType(Context.IntTy)); in Initialize()
229 Context.getAtomicType(Context.UnsignedIntTy)); in Initialize()
230 addImplicitTypedef("atomic_long", Context.getAtomicType(Context.LongTy)); in Initialize()
232 Context.getAtomicType(Context.UnsignedLongTy)); in Initialize()
234 Context.getAtomicType(Context.FloatTy)); in Initialize()
236 Context.getAtomicType(Context.DoubleTy)); in Initialize()
239 addImplicitTypedef("atomic_flag", Context.getAtomicType(Context.IntTy)); in Initialize()
241 Context.getAtomicType(Context.getIntPtrType())); in Initialize()
243 Context.getAtomicType(Context.getUIntPtrType())); in Initialize()
245 Context.getAtomicType(Context.getSizeType())); in Initialize()
247 Context.getAtomicType(Context.getPointerDiffType())); in Initialize()
251 if (Context.getTargetInfo().hasBuiltinMSVaList()) { in Initialize()
252 DeclarationName MSVaList = &Context.Idents.get("__builtin_ms_va_list"); in Initialize()
254 PushOnScopeChains(Context.getBuiltinMSVaListDecl(), TUScope); in Initialize()
257 DeclarationName BuiltinVaList = &Context.Idents.get("__builtin_va_list"); in Initialize()
259 PushOnScopeChains(Context.getBuiltinVaListDecl(), TUScope); in Initialize()
278 = dyn_cast_or_null<ExternalSemaSource>(Context.getExternalSource())) in ~Sema()
308 if (!Context.getSourceManager().isInSystemHeader(loc)) in makeUnavailableInSystemHeader()
314 fn->addAttr(UnavailableAttr::CreateImplicit(Context, "", reason, loc)); in makeUnavailableInSystemHeader()
355 Optional<NullabilityKind> ExprNullability = SrcType->getNullability(Context); in diagnoseNullableToNonnullConversion()
359 Optional<NullabilityKind> TypeNullability = DstType->getNullability(Context); in diagnoseNullableToNonnullConversion()
391 QualType ExprTy = Context.getCanonicalType(E->getType()); in ImpCastExprToType()
392 QualType TypeTy = Context.getCanonicalType(Ty); in ImpCastExprToType()
405 return ImplicitCastExpr::Create(Context, Ty, Kind, E, BasePath, VK); in ImpCastExprToType()
454 VD->isUsableInConstantExpressions(SemaRef->Context)) in ShouldRemoveFromUnused()
505 SourceManager &SM = Context.getSourceManager(); in getUndefinedButUsed()
806 = Context.getAsIncompleteArrayType(VD->getType())) { in ActOnEndOfTranslationUnit()
809 llvm::APInt One(Context.getTypeSize(Context.getSizeType()), true); in ActOnEndOfTranslationUnit()
810 QualType T = Context.getConstantArrayType(ArrayT->getElementType(), in ActOnEndOfTranslationUnit()
991 PartialDiagnostic(DiagInfo, Context.getDiagAllocator())); in EmitCurrentDiagnostic()
1016 PartialDiagnostic(DiagInfo, Context.getDiagAllocator())); in EmitCurrentDiagnostic()
1038 PartialDiagnostic(DiagInfo, Context.getDiagAllocator())); in EmitCurrentDiagnostic()
1049 Context.setPrintingPolicy(getPrintingPolicy()); in EmitCurrentDiagnostic()
1256 Context.addComment(RC); in ActOnComment()
1311 if (E.getType() == Context.OverloadTy) { in tryExprAsCall()
1319 } else if (E.getType() == Context.BoundMemberTy) { in tryExprAsCall()
1499 Ident_super = &Context.Idents.get("super"); in getSuperIdentifier()
1505 Ident___float128 = &Context.Idents.get("__float128"); in getFloat128Identifier()
1513 CSI->ReturnType = Context.VoidTy; in PushCapturedRegionScope()