Home
last modified time | relevance | path

Searched refs:EvaluateAsRValue (Results 1 – 13 of 13) sorted by relevance

/external/clang/unittests/AST/
DEvaluateAsRValueTest.cpp46 bool WasEvaluated = Init->EvaluateAsRValue(Result, VD->getASTContext()); in VisitVarDecl()
84 TEST(EvaluateAsRValue, FailsGracefullyForUnknownTypes) { in TEST() argument
/external/clang/lib/AST/
DExprConstant.cpp6144 if (!Arg->EvaluateAsRValue(Result, Ctx) || Result.HasSideEffects) in EvaluateBuiltinConstantP()
8432 static bool EvaluateAsRValue(EvalInfo &Info, const Expr *E, APValue &Result) { in EvaluateAsRValue() function
8488 bool Expr::EvaluateAsRValue(EvalResult &Result, const ASTContext &Ctx) const { in EvaluateAsRValue() function in Expr
8494 return ::EvaluateAsRValue(Info, this, Result.Val); in EvaluateAsRValue()
8500 return EvaluateAsRValue(Scratch, Ctx) && in EvaluateAsBooleanCondition()
8510 if (!EvaluateAsRValue(ExprResult, Ctx) || !ExprResult.Val.isInt() || in EvaluateAsInt()
8574 return EvaluateAsRValue(Result, Ctx) && !Result.HasSideEffects; in isEvaluatable()
8581 bool Result = EvaluateAsRValue(EvalResult, Ctx); in EvaluateKnownConstInt()
8594 (void)::EvaluateAsRValue(Info, this, EvalResult.Val); in EvaluateForOverflow()
8647 if (!E->EvaluateAsRValue(EVResult, Ctx) || EVResult.HasSideEffects || in CheckEvalInICE()
[all …]
DASTDiagnostic.cpp1331 if (!FromExpr->EvaluateAsRValue(FromResult, Context) || in IsEqualExpr()
1332 !ToExpr->EvaluateAsRValue(ToResult, Context)) { in IsEqualExpr()
/external/clang/lib/CodeGen/
DCGExprConstant.cpp1057 Success = E->EvaluateAsRValue(Result, Context); in EmitConstantExpr()
DCodeGenModule.cpp3059 if (!Value && Init->EvaluateAsRValue(EvalResult, getContext()) && in GetAddrOfGlobalTemporary()
DCGExpr.cpp1015 refExpr->EvaluateAsRValue(result, getContext())) { in tryEmitAsConstant()
DCGBuiltin.cpp218 if (E->EvaluateAsRValue(Result, CGM.getContext()) && in EmitBuiltinExpr()
/external/clang/include/clang/AST/
DExpr.h568 bool EvaluateAsRValue(EvalResult &Result, const ASTContext &Ctx) const;
/external/clang/lib/Analysis/
DCFG.cpp811 S->EvaluateAsRValue(outResult, *Context); in tryEvaluate()
/external/clang/lib/Sema/
DSemaChecking.cpp5733 if (E->EvaluateAsRValue(result, C)) in GetExprRange()
6663 if (E->EvaluateAsRValue(result, S.Context)) { in CheckImplicitConversion()
DSemaTemplate.cpp4219 if (!Arg->EvaluateAsRValue(EvalResult, S.Context) || in isNullPointerValueTemplateArgument()
DSemaOverload.cpp5099 : !Result.get()->EvaluateAsRValue(Eval, S.Context)) || in CheckConvertedConstantExpression()
DSemaExpr.cpp11847 bool Folded = E->EvaluateAsRValue(EvalResult, Context) && in VerifyIntegerConstantExpression()