Lines Matching defs:Eval
1878 if (EvaluatedStmt *Eval = Init.dyn_cast<EvaluatedStmt *>()) {
1879 Eval->~EvaluatedStmt();
1880 getASTContext().Deallocate(Eval);
1917 EvaluatedStmt *Eval = Init.dyn_cast<EvaluatedStmt *>();
1918 if (!Eval) {
1924 Eval = new (getASTContext()) EvaluatedStmt;
1925 Eval->Value = S;
1926 Init = Eval;
1928 return Eval;
1945 EvaluatedStmt *Eval = ensureEvaluatedStmt();
1950 if (Eval->WasEvaluated)
1951 return Eval->Evaluated.isUninit() ? 0 : &Eval->Evaluated;
1953 const Expr *Init = cast<Expr>(Eval->Value);
1956 if (Eval->IsEvaluating) {
1958 Eval->CheckedICE = true;
1959 Eval->IsICE = false;
1963 Eval->IsEvaluating = true;
1965 bool Result = Init->EvaluateAsInitializer(Eval->Evaluated, getASTContext(),
1972 Eval->Evaluated = APValue();
1973 else if (Eval->Evaluated.needsCleanup())
1974 getASTContext().AddDeallocation(DestroyAPValue, &Eval->Evaluated);
1976 Eval->IsEvaluating = false;
1977 Eval->WasEvaluated = true;
1981 if (getASTContext().getLangOpts().CPlusPlus11 && !Eval->CheckedICE) {
1982 Eval->CheckedICE = true;
1983 Eval->IsICE = Result && Notes.empty();
1986 return Result ? &Eval->Evaluated : 0;
1994 EvaluatedStmt *Eval = ensureEvaluatedStmt();
1995 if (Eval->CheckedICE)
1998 return Eval->IsICE;
2000 const Expr *Init = cast<Expr>(Eval->Value);
2008 return Eval->IsICE;
2015 if (Eval->CheckingICE)
2017 Eval->CheckingICE = true;
2019 Eval->IsICE = Init->isIntegerConstantExpr(getASTContext());
2020 Eval->CheckingICE = false;
2021 Eval->CheckedICE = true;
2022 return Eval->IsICE;