clang
19.0.0git
|
EvalResult is a struct with detailed info about an evaluated expression. More...
#include "clang/AST/Expr.h"
Public Member Functions | |
bool | isGlobalLValue () const |
![]() | |
EvalStatus ()=default | |
bool | hasSideEffects () const |
Public Attributes | |
APValue | Val |
Val - This is the value the expression can be folded to. More... | |
![]() | |
bool | HasSideEffects = false |
Whether the evaluated expression has side effects. More... | |
bool | HasUndefinedBehavior = false |
Whether the evaluation hit undefined behavior. More... | |
SmallVectorImpl< PartialDiagnosticAt > * | Diag = nullptr |
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 16212 of file ExprConstant.cpp.
References clang::APValue::getLValueBase(), IsGlobalLValue(), and clang::APValue::isLValue().
APValue clang::Expr::EvalResult::Val |
Val - This is the value the expression can be folded to.
Definition at line 644 of file Expr.h.
Referenced by clang::Sema::CheckForImmediateInvocation(), checkOpenMPLoop(), clang::Sema::ConstantFoldAttrArgs(), clang::Sema::EvaluateConvertedConstantExpression(), GetExprRange(), clang::StandardConversionSequence::getNarrowingKind(), shouldAddCase(), and clang::CodeGen::CodeGenFunction::tryEmitAsConstant().