Lines Matching refs:EvalStatus
441 Expr::EvalStatus &EvalStatus; member
541 EvalInfo(const ASTContext &C, Expr::EvalStatus &S, EvaluationMode Mode) in EvalInfo()
542 : Ctx(const_cast<ASTContext &>(C)), EvalStatus(S), CurrentCall(nullptr), in EvalInfo()
598 EvalStatus.Diag->push_back(std::make_pair(Loc, PD)); in addDiag()
599 return EvalStatus.Diag->back().second; in addDiag()
609 if (EvalStatus.Diag) { in Diag()
616 if (!EvalStatus.Diag->empty()) { in Diag()
643 EvalStatus.Diag->clear(); in Diag()
644 EvalStatus.Diag->reserve(1 + ExtraNotes + CallStackNotes); in Diag()
648 return OptionalDiagnostic(&(*EvalStatus.Diag)[0].second); in Diag()
665 if (EvalStatus.Diag) in FFDiag()
681 if (!EvalStatus.Diag || !EvalStatus.Diag->empty()) { in CCEDiag()
702 EvalStatus.Diag->insert(EvalStatus.Diag->end(), in addNotes()
729 EvalStatus.HasSideEffects = true; in noteSideEffect()
755 EvalStatus.HasUndefinedBehavior = true; in noteUndefinedBehavior()
800 EvalStatus.HasSideEffects |= KeepGoing; in noteFailure()
819 HadNoPriorDiags(Info.EvalStatus.Diag && in FoldConstant()
820 Info.EvalStatus.Diag->empty() && in FoldConstant()
821 !Info.EvalStatus.HasSideEffects), in FoldConstant()
830 if (Enabled && HadNoPriorDiags && !Info.EvalStatus.Diag->empty() && in ~FoldConstant()
831 !Info.EvalStatus.HasSideEffects) in ~FoldConstant()
832 Info.EvalStatus.Diag->clear(); in ~FoldConstant()
858 Expr::EvalStatus Old;
871 Info->EvalStatus = Old; in maybeRestoreState()
881 Old(Info.EvalStatus) { in SpeculativeEvaluationRAII()
882 Info.EvalStatus.Diag = NewDiag; in SpeculativeEvaluationRAII()
2880 Info.EvalStatus.HasSideEffects) || in findCompleteObject()
6555 Expr::EvalStatus Status; in EvaluateBuiltinConstantP()
9166 static bool hasUnacceptableSideEffect(Expr::EvalStatus &Result, in hasUnacceptableSideEffect()
9222 Expr::EvalStatus EStatus; in EvaluateAsInitializer()
9781 Expr::EvalStatus Status; in isCXX11ConstantExpr()
9803 Expr::EvalStatus Status; in EvaluateWithSubstitution()
9813 if (Info.EvalStatus.HasSideEffects) in EvaluateWithSubstitution()
9820 return Evaluate(Value, Info, this) && !Info.EvalStatus.HasSideEffects; in EvaluateWithSubstitution()
9832 Expr::EvalStatus Status; in isPotentialConstantExpr()
9868 Expr::EvalStatus Status; in isPotentialConstantExprUnevaluated()
9893 Expr::EvalStatus Status; in tryEvaluateObjectSize()