Lines Matching refs:Context
104 return &Context.Idents.get(OS.str()); in InventAbbreviatedTemplateParameterTypeName()
107 PrintingPolicy Sema::getPrintingPolicy(const ASTContext &Context, in getPrintingPolicy() argument
109 PrintingPolicy Policy = Context.getPrintingPolicy(); in getPrintingPolicy()
112 Policy.Bool = Context.getLangOpts().Bool; in getPrintingPolicy()
114 if (const MacroInfo *BoolMacro = PP.getMacroInfo(Context.getBoolName())) { in getPrintingPolicy()
129 PushDeclContext(S, Context.getTranslationUnitDecl()); in ActOnTranslationUnitScope()
192 LangOpts(pp.getLangOpts()), PP(pp), Context(ctxt), Consumer(consumer), in Sema()
217 SatisfactionCache(Context), AccessCheckingSFINAE(false), in Sema()
231 NSAPIObj.reset(new NSAPI(Context)); in Sema()
237 Diags.SetArgToStringFn(&FormatASTNodeDiagnosticArgument, &Context); in Sema()
262 DeclarationName DN = &Context.Idents.get(Name); in addImplicitTypedef()
264 PushOnScopeChains(Context.buildImplicitTypedef(T, Name), TUScope); in addImplicitTypedef()
273 = dyn_cast_or_null<ExternalSemaSource>(Context.getExternalSource())) in Initialize()
284 if (Context.getTargetInfo().hasInt128Type() || in Initialize()
285 (Context.getAuxTargetInfo() && in Initialize()
286 Context.getAuxTargetInfo()->hasInt128Type())) { in Initialize()
289 DeclarationName Int128 = &Context.Idents.get("__int128_t"); in Initialize()
291 PushOnScopeChains(Context.getInt128Decl(), TUScope); in Initialize()
293 DeclarationName UInt128 = &Context.Idents.get("__uint128_t"); in Initialize()
295 PushOnScopeChains(Context.getUInt128Decl(), TUScope); in Initialize()
303 DeclarationName SEL = &Context.Idents.get("SEL"); in Initialize()
305 PushOnScopeChains(Context.getObjCSelDecl(), TUScope); in Initialize()
309 DeclarationName Id = &Context.Idents.get("id"); in Initialize()
311 PushOnScopeChains(Context.getObjCIdDecl(), TUScope); in Initialize()
314 DeclarationName Class = &Context.Idents.get("Class"); in Initialize()
316 PushOnScopeChains(Context.getObjCClassDecl(), TUScope); in Initialize()
319 DeclarationName Protocol = &Context.Idents.get("Protocol"); in Initialize()
321 PushOnScopeChains(Context.getObjCProtocolDecl(), TUScope); in Initialize()
325 DeclarationName ConstantString = &Context.Idents.get("__NSConstantString"); in Initialize()
327 PushOnScopeChains(Context.getCFConstantStringDecl(), TUScope); in Initialize()
332 IdResolver.begin(&Context.Idents.get("type_info")) == IdResolver.end()) in Initialize()
334 Context.buildImplicitRecord("type_info", TagTypeKind::Class), in Initialize()
337 addImplicitTypedef("size_t", Context.getSizeType()); in Initialize()
344 Context.getTargetInfo().getSupportedOpenCLOpts(), getLangOpts()); in Initialize()
345 addImplicitTypedef("sampler_t", Context.OCLSamplerTy); in Initialize()
346 addImplicitTypedef("event_t", Context.OCLEventTy); in Initialize()
350 addImplicitTypedef("clk_event_t", Context.OCLClkEventTy); in Initialize()
351 addImplicitTypedef("queue_t", Context.OCLQueueTy); in Initialize()
354 addImplicitTypedef("reserve_id_t", Context.OCLReserveIDTy); in Initialize()
355 addImplicitTypedef("atomic_int", Context.getAtomicType(Context.IntTy)); in Initialize()
357 Context.getAtomicType(Context.UnsignedIntTy)); in Initialize()
359 Context.getAtomicType(Context.FloatTy)); in Initialize()
362 addImplicitTypedef("atomic_flag", Context.getAtomicType(Context.IntTy)); in Initialize()
378 auto AtomicSizeT = Context.getAtomicType(Context.getSizeType()); in Initialize()
379 auto AtomicIntPtrT = Context.getAtomicType(Context.getIntPtrType()); in Initialize()
380 auto AtomicUIntPtrT = Context.getAtomicType(Context.getUIntPtrType()); in Initialize()
382 Context.getAtomicType(Context.getPointerDiffType()); in Initialize()
389 if (Context.getTypeSize(Context.getSizeType()) == 32) { in Initialize()
394 auto AtomicHalfT = Context.getAtomicType(Context.HalfTy); in Initialize()
404 auto AtomicDoubleT = Context.getAtomicType(Context.DoubleTy); in Initialize()
408 auto AtomicLongT = Context.getAtomicType(Context.LongTy); in Initialize()
409 auto AtomicULongT = Context.getAtomicType(Context.UnsignedLongTy); in Initialize()
414 if (Context.getTypeSize(Context.getSizeType()) == 64) { in Initialize()
422 addImplicitTypedef(#ExtType, Context.Id##Ty); \ in Initialize()
427 if (Context.getTargetInfo().hasAArch64SVETypes()) { in Initialize()
429 addImplicitTypedef(Name, Context.SingletonId); in Initialize()
433 if (Context.getTargetInfo().getTriple().isPPC64()) { in Initialize()
435 addImplicitTypedef(#Name, Context.Id##Ty); in Initialize()
438 addImplicitTypedef(#Name, Context.Id##Ty); in Initialize()
442 if (Context.getTargetInfo().hasRISCVVTypes()) { in Initialize()
444 addImplicitTypedef(Name, Context.SingletonId); in Initialize()
448 if (Context.getTargetInfo().getTriple().isWasm() && in Initialize()
449 Context.getTargetInfo().hasFeature("reference-types")) { in Initialize()
451 addImplicitTypedef(Name, Context.SingletonId); in Initialize()
455 if (Context.getTargetInfo().hasBuiltinMSVaList()) { in Initialize()
456 DeclarationName MSVaList = &Context.Idents.get("__builtin_ms_va_list"); in Initialize()
458 PushOnScopeChains(Context.getBuiltinMSVaListDecl(), TUScope); in Initialize()
461 DeclarationName BuiltinVaList = &Context.Idents.get("__builtin_va_list"); in Initialize()
463 PushOnScopeChains(Context.getBuiltinVaListDecl(), TUScope); in Initialize()
482 = dyn_cast_or_null<ExternalSemaSource>(Context.getExternalSource())) in ~Sema()
531 if (!Context.getSourceManager().isInSystemHeader(loc)) in makeUnavailableInSystemHeader()
537 fn->addAttr(UnavailableAttr::CreateImplicit(Context, "", reason, loc)); in makeUnavailableInSystemHeader()
665 QualType ExprTy = Context.getCanonicalType(E->getType()); in ImpCastExprToType()
666 QualType TypeTy = Context.getCanonicalType(Ty); in ImpCastExprToType()
711 return ImplicitCastExpr::Create(Context, Ty, Kind, E, BasePath, VK, in ImpCastExprToType()
769 VD->mightBeUsableInConstantExpressions(SemaRef->Context)) in ShouldRemoveFromUnused()
1331 = Context.getAsIncompleteArrayType(VD->getType())) { in ActOnEndOfTranslationUnit()
1334 llvm::APInt One(Context.getTypeSize(Context.getSizeType()), true); in ActOnEndOfTranslationUnit()
1335 QualType T = Context.getConstantArrayType( in ActOnEndOfTranslationUnit()
1464 AnalysisWarnings.IssueWarnings(Context.getTranslationUnitDecl()); in ActOnEndOfTranslationUnit()
1551 PartialDiagnostic(DiagInfo, Context.getDiagAllocator())); in EmitCurrentDiagnostic()
1576 PartialDiagnostic(DiagInfo, Context.getDiagAllocator())); in EmitCurrentDiagnostic()
1598 PartialDiagnostic(DiagInfo, Context.getDiagAllocator())); in EmitCurrentDiagnostic()
1610 Context.setPrintingPolicy(getPrintingPolicy()); in EmitCurrentDiagnostic()
1984 if (!Context.getTargetInfo().hasBitIntType()) { in checkTypeSupport()
1992 << Ty << Context.getTargetInfo().getTriple().str(); in checkTypeSupport()
2000 if (Ty->isRealFloatingType() && Context.getTypeSize(Ty) == 128) { in checkTypeSupport()
2001 const llvm::fltSemantics &Sem = Context.getFloatTypeSemantics(Ty); in checkTypeSupport()
2003 !Context.getTargetInfo().hasFloat128Type()) || in checkTypeSupport()
2005 !Context.getTargetInfo().hasIbm128Type())) in checkTypeSupport()
2009 if ((Ty->isFloat16Type() && !Context.getTargetInfo().hasFloat16Type()) || in checkTypeSupport()
2010 (Ty->isFloat128Type() && !Context.getTargetInfo().hasFloat128Type()) || in checkTypeSupport()
2011 (Ty->isIbm128Type() && !Context.getTargetInfo().hasIbm128Type()) || in checkTypeSupport()
2012 (Ty->isIntegerType() && Context.getTypeSize(Ty) == 128 && in checkTypeSupport()
2013 !Context.getTargetInfo().hasInt128Type()) || in checkTypeSupport()
2014 (Ty->isBFloat16Type() && !Context.getTargetInfo().hasBFloat16Type() && in checkTypeSupport()
2025 << static_cast<unsigned>(Context.getTypeSize(Ty)) << Ty in checkTypeSupport()
2026 << false /*return*/ << Context.getTargetInfo().getTriple().str()) { in checkTypeSupport()
2042 const TargetInfo &TI = Context.getTargetInfo(); in checkTypeSupport()
2043 if (!TI.hasLongDoubleType() && UnqualTy == Context.LongDoubleTy) { in checkTypeSupport()
2060 bool IsDouble = UnqualTy == Context.DoubleTy; in checkTypeSupport()
2061 bool IsFloat = UnqualTy == Context.FloatTy; in checkTypeSupport()
2085 Context.getFunctionFeatureMap(CallerFeatureMap, FD); in checkTypeSupport()
2198 new (S.Context) DeclRefExpr(S.Context, VD, false, T, VK_LValue, Loc); in checkEscapingByref()
2202 auto *E = ImplicitCastExpr::Create(S.Context, T, CK_NoOp, VarRef, nullptr, in checkEscapingByref()
2214 S.Context.setBlockVarCopyInit(VD, Init, S.canThrow(Init)); in checkEscapingByref()
2449 Context.addComment(RC); in ActOnComment()
2487 if (E.getType() == Context.OverloadTy) { in tryExprAsCall()
2495 } else if (E.getType() == Context.BoundMemberTy) { in tryExprAsCall()
2709 Ident_super = &Context.Idents.get("super"); in getSuperIdentifier()
2720 CSI->ReturnType = Context.VoidTy; in PushCapturedRegionScope()