clang
8.0.0
|
EvalResult is a struct with detailed info about an evaluated expression. More...
#include "clang/AST/Expr.h"
Public Member Functions | |
bool | isGlobalLValue () const |
![]() | |
EvalStatus () | |
bool | hasSideEffects () const |
Public Attributes | |
APValue | Val |
Val - This is the value the expression can be folded to. More... | |
![]() | |
bool | HasSideEffects |
Whether the evaluated expression has side effects. More... | |
bool | HasUndefinedBehavior |
Whether the evaluation hit undefined behavior. More... | |
SmallVectorImpl< PartialDiagnosticAt > * | Diag |
Diag - If this is non-null, it will be filled in with a stack of notes indicating why evaluation failed (or why it failed to produce a constant expression). More... | |
EvalResult is a struct with detailed info about an evaluated expression.
bool Expr::EvalResult::isGlobalLValue | ( | ) | const |
Definition at line 11085 of file ExprConstant.cpp.
References IsGlobalLValue().
APValue clang::Expr::EvalResult::Val |
Val - This is the value the expression can be folded to.
Definition at line 573 of file Expr.h.
Referenced by AddVariableConstraints(), AnalyzeBitFieldAssignment(), canConvertIntToOtherIntTy(), canConvertIntTyToFloatTy(), checkArrayExpressionDoesNotReferToUnitySize(), checkArrayExpressionDoesNotReferToWholeSize(), CheckConvertedConstantExpression(), checkFormatStringExpr(), CheckImplicitConversion(), checkMapClauseExpressionBase(), checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::CodeGen::CodeGenFunction::ConstantFoldsToSimpleInteger(), DiagnoseBadDivideOrRemainderValues(), DiagnoseBadFunctionCast(), DiagnoseBadShiftValues(), clang::CodeGen::CodeGenFunction::EmitARMBuiltinExpr(), clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(), clang::CodeGen::emitDeclareSimdFunction(), EvaluateAsInt(), EvaluateAsRValue(), EvaluateBuiltinConstantP(), FastEvaluateAsRValue(), getBytesReturnedByAllocSizeCall(), clang::ento::SValBuilder::getConstantVal(), GetExprRange(), hasDefaultSetterName(), isInLoop(), isNullPointerValueTemplateArgument(), shouldAddCase(), clang::CodeGen::CodeGenFunction::ShouldNullCheckClassCastValue(), clang::CodeGen::CodeGenFunction::tryEmitAsConstant(), and clang::CodeGen::ConstantEmitter::tryEmitPrivate().