Lines Matching refs:Current
69 const InterpFrame *StartFrame = S.Current; in BCP()
130 const SourceInfo &E = S.Current->getSource(OpPC); in diagnoseMissingInitializer()
148 const SourceInfo &Loc = S.Current->getSource(OpPC); in diagnoseUnknownDecl()
164 const SourceInfo &Loc = S.Current->getSource(OpPC); in diagnoseUnknownDecl()
178 const SourceInfo &Loc = S.Current->getSource(OpPC); in diagnoseNonConstVariable()
226 const SourceInfo &E = S.Current->getSource(OpPC); in CheckTemporary()
243 S.FFDiag(S.Current->getLocation(OpPC), diag::note_constexpr_modify_global); in CheckGlobal()
258 assert(S.Current); in cleanupAfterFunctionCall()
261 if (S.Current->Caller && Func->isVariadic()) { in cleanupAfterFunctionCall()
268 const Expr *CallSite = S.Current->Caller->getExpr(S.Current->getRetPC()); in cleanupAfterFunctionCall()
379 const SourceInfo &Loc = S.Current->getSource(OpPC); in CheckActive()
405 const SourceInfo &E = S.Current->getSource(OpPC); in CheckArray()
413 const auto &Src = S.Current->getSource(OpPC); in CheckLive()
424 const auto &Src = S.Current->getSource(OpPC); in CheckLive()
470 S.CCEDiag(S.Current->getLocation(OpPC), in CheckConstant()
478 S.CCEDiag(S.Current->getLocation(OpPC)); in CheckConstant()
508 const SourceInfo &Loc = S.Current->getSource(OpPC); in CheckNull()
510 << CSK << S.Current->getRange(OpPC); in CheckNull()
520 const SourceInfo &Loc = S.Current->getSource(OpPC); in CheckRange()
522 << AK << S.Current->getRange(OpPC); in CheckRange()
531 const SourceInfo &Loc = S.Current->getSource(OpPC); in CheckRange()
533 << CSK << S.Current->getRange(OpPC); in CheckRange()
542 const SourceInfo &Loc = S.Current->getSource(OpPC); in CheckSubobject()
544 << CSK << S.Current->getRange(OpPC); in CheckSubobject()
558 const auto *E = cast<CastExpr>(S.Current->getExpr(OpPC)); in CheckDowncast()
582 const SourceInfo &Loc = S.Current->getSource(OpPC); in CheckConst()
605 const SourceInfo &Loc = S.Current->getSource(OpPC); in CheckMutable()
648 S.FFDiag(S.Current->getLocation(OpPC), in CheckVolatile()
672 const SourceInfo &Loc = S.Current->getSource(OpPC); in CheckInitialized()
681 const SourceInfo &Loc = S.Current->getSource(OpPC); in CheckInitialized()
691 S.FFDiag(S.Current->getSource(OpPC), diag::note_constexpr_access_uninit) in CheckInitialized()
692 << AK << /*uninitialized=*/true << S.Current->getRange(OpPC); in CheckInitialized()
703 S.FFDiag(S.Current->getSource(OpPC), diag::note_constexpr_access_uninit) in CheckLifetime()
704 << AK << /*uninitialized=*/false << S.Current->getRange(OpPC); in CheckLifetime()
719 const SourceInfo &Loc = S.Current->getSource(OpPC); in CheckGlobalInitialized()
732 S.FFDiag(S.Current->getLocation(OpPC), diag::note_constexpr_var_init_weak) in CheckWeak()
840 const SourceLocation &Loc = S.Current->getLocation(OpPC); in CheckCallable()
845 if (S.checkingPotentialConstantExpression() && S.Current->getDepth() != 0) in CheckCallable()
862 if (S.Current->getLocation(OpPC).isMacroID() && in CheckCallable()
870 S.FFDiag(S.Current->getLocation(OpPC), in CheckCallable()
901 S.FFDiag(S.Current->getLocation(OpPC), in CheckCallable()
921 S.FFDiag(S.Current->getLocation(OpPC), in CheckCallable()
932 S.FFDiag(S.Current->getLocation(OpPC), in CheckCallable()
940 if ((S.Current->getDepth() + 1) > S.getLangOpts().ConstexprCallDepth) { in CheckCallDepth()
941 S.FFDiag(S.Current->getSource(OpPC), in CheckCallDepth()
954 const Expr *E = S.Current->getExpr(OpPC); in CheckThis()
974 const SourceInfo &E = S.Current->getSource(OpPC); in CheckFloatResult()
976 << /*NaN=*/true << S.Current->getRange(OpPC); in CheckFloatResult()
989 const SourceInfo &E = S.Current->getSource(OpPC); in CheckFloatResult()
998 const SourceInfo &E = S.Current->getSource(OpPC); in CheckFloatResult()
1005 const SourceInfo &E = S.Current->getSource(OpPC); in CheckFloatResult()
1018 const SourceInfo &E = S.Current->getSource(OpPC); in CheckDynamicMemoryAllocation()
1032 const SourceInfo &E = S.Current->getSource(OpPC); in CheckNewDeleteForms()
1056 const SourceInfo &Loc = S.Current->getSource(OpPC); in CheckDeleteSource()
1088 const SourceInfo &E = S.Current->getSource(OpPC); in CheckDummy()
1104 const SourceLocation &Loc = S.Current->getLocation(OpPC); in CheckNonNullArgs()
1123 if (Pointer::pointToSameBlock(BasePtr, S.Current->getThis()) && in runRecordDestructor()
1124 S.Current->getFunction()->isDestructor()) { in runRecordDestructor()
1125 const SourceInfo &Loc = S.Current->getSource(OpPC); in runRecordDestructor()
1221 S.FFDiag(S.Current->getSource(OpPC), in Free()
1229 const SourceInfo &Loc = S.Current->getSource(OpPC); in Free()
1254 S.FFDiag(S.Current->getSource(OpPC), in Free()
1270 const SourceInfo &Loc = S.Current->getSource(OpPC); in Free()
1290 const SourceLocation &Loc = S.Current->getLocation(OpPC); in diagnoseEnumValue()
1295 const SourceLocation &Loc = S.Current->getLocation(OpPC); in diagnoseEnumValue()
1320 if (S.Current->getFunction() && S.Current->getFunction()->isConstructor() && in CheckLiteralType()
1321 S.Current->getThis().getDeclDesc()->asDecl() == S.EvaluatingDecl) { in CheckLiteralType()
1325 const Expr *E = S.Current->getExpr(OpPC); in CheckLiteralType()
1355 S.FFDiag(S.Current->getSource(OpPC), in getField()
1394 S.FFDiag(S.Current->getLocation(OpPC), diag::note_constexpr_virtual_base) in checkConstructor()
1409 const SourceInfo &E = S.Current->getSource(OpPC); in CheckDestructor()
1433 if (!(S.Current->getFunction() && in CallVar()
1434 S.Current->getFunction()->isLambdaStaticInvoker() && in CallVar()
1454 InterpFrame *FrameBefore = S.Current; in CallVar()
1455 S.Current = NewFrame.get(); in CallVar()
1462 assert(S.Current == FrameBefore); in CallVar()
1468 S.Current = FrameBefore; in CallVar()
1495 if (S.Current->getFunction() && in Call()
1496 S.Current->getFunction()->isLambdaStaticInvoker() && in Call()
1534 InterpFrame *FrameBefore = S.Current; in Call()
1535 S.Current = NewFrame.get(); in Call()
1549 S.Current = FrameBefore; in Call()
1554 assert(S.Current == FrameBefore); in Call()
1574 S.FFDiag(S.Current->getSource(OpPC), diag::note_constexpr_pure_virtual_call, in CallVirt()
1605 const Expr *E = S.Current->getExpr(OpPC); in CallVirt()
1663 const auto *E = cast<CallExpr>(S.Current->getExpr(OpPC)); in CallPtr()
1831 S.FFDiag(S.Current->getLocation(OpPC), in CheckNewTypeMismatch()
1852 if (S.getLangOpts().CPlusPlus26 || S.Current->isStdFunction()) in InvalidNewDeleteExpr()
1854 S.FFDiag(S.Current->getSource(OpPC), diag::note_constexpr_new_placement) in InvalidNewDeleteExpr()
1859 S.FFDiag(S.Current->getSource(OpPC), in InvalidNewDeleteExpr()
1867 S.FFDiag(S.Current->getSource(OpPC), diag::note_constexpr_new_placement) in InvalidNewDeleteExpr()
1878 S.FFDiag(S.Current->getSource(OpPC), in InvalidNewDeleteExpr()
1890 const Expr *E = S.Current->getExpr(OpPC); in handleFixedPointOverflow()
1902 const SourceInfo &Loc = S.Current->getSource(OpPC); in InvalidShuffleVectorIndex()
1916 const SourceInfo &E = S.Current->getSource(OpPC); in CheckPointerToIntegralCast()
1918 << 2 << S.getLangOpts().CPlusPlus << S.Current->getRange(OpPC); in CheckPointerToIntegralCast()
1965 const Expr *E = S.Current->getExpr(OpPC); in CheckBitCast()
1988 if (S.Current->getFunction()) { in GetTypeidPtr()
1989 for (const InterpFrame *Frame = S.Current; Frame; Frame = Frame->Caller) { in GetTypeidPtr()
2005 const auto *E = cast<CXXTypeidExpr>(S.Current->getExpr(OpPC)); in DiagTypeid()
2160 const InterpFrame *StartFrame = S.Current; in Interpret()
2161 assert(!S.Current->isRoot()); in Interpret()
2162 CodePtr PC = S.Current->getPC(); in Interpret()