Home | History | Annotate | Download | only in AST

Lines Matching defs:Eval

1700   if (EvaluatedStmt *Eval = Init.dyn_cast<EvaluatedStmt *>()) {
1701 Eval->~EvaluatedStmt();
1702 getASTContext().Deallocate(Eval);
1739 EvaluatedStmt *Eval = Init.dyn_cast<EvaluatedStmt *>();
1740 if (!Eval) {
1742 Eval = new (getASTContext()) EvaluatedStmt;
1743 Eval->Value = S;
1744 Init = Eval;
1746 return Eval;
1756 EvaluatedStmt *Eval = ensureEvaluatedStmt();
1761 if (Eval->WasEvaluated)
1762 return Eval->Evaluated.isUninit() ? 0 : &Eval->Evaluated;
1764 const Expr *Init = cast<Expr>(Eval->Value);
1767 if (Eval->IsEvaluating) {
1769 Eval->CheckedICE = true;
1770 Eval
1774 Eval->IsEvaluating = true;
1776 bool Result = Init->EvaluateAsInitializer(Eval->Evaluated, getASTContext(),
1781 Eval->Evaluated = APValue();
1783 Eval->IsEvaluating = false;
1784 Eval->WasEvaluated = true;
1788 if (getASTContext().getLangOpts().CPlusPlus11 && !Eval->CheckedICE) {
1789 Eval->CheckedICE = true;
1790 Eval->IsICE = Result && Notes.empty();
1793 return Result ? &Eval->Evaluated : 0;
1801 EvaluatedStmt *Eval = ensureEvaluatedStmt();
1802 if (Eval->CheckedICE)
1805 return Eval->IsICE;
1807 const Expr *Init = cast<Expr>(Eval->Value);
1815 return Eval->IsICE;
1822 if (Eval->CheckingICE)
1824 Eval->CheckingICE = true;
1826 Eval->IsICE = Init->isIntegerConstantExpr(getASTContext());
1827 Eval->CheckingICE = false;
1828 Eval->CheckedICE = true;
1829 return Eval->IsICE;