struct EvaluatedStmt
Declaration
struct EvaluatedStmt { /* full declaration omitted */ };
Description
Structure used to store a statement, the constant value to which it was evaluated (if any), and whether or not the statement is an integral constant expression (if known).
Declared at: clang/include/clang/AST/Decl.h:839
Member Variables
- public bool WasEvaluated
- Whether this statement was already evaluated.
- public bool IsEvaluating
- Whether this statement is being evaluated.
- public bool HasConstantInitialization
- Whether this variable is known to have constant initialization. This is currently only computed in C++, for static / thread storage duration variables that might have constant initialization and for variables that are usable in constant expressions.
- public bool HasConstantDestruction
- Whether this variable is known to have constant destruction. That is, whether running the destructor on the initial value is a side-effect (and doesn't inspect any state that might have changed during program execution). This is currently only computed if the destructor is non-trivial.
- public bool HasICEInit
- In C++98, whether the initializer is an ICE. This affects whether the variable is usable in constant expressions.
- public bool CheckedForICEInit
- public clang::Stmt* Value
- public clang::APValue Evaluated
Method Overview
- public EvaluatedStmt()
Methods
ΒΆEvaluatedStmt()
EvaluatedStmt()
Declared at: clang/include/clang/AST/Decl.h:867