clang 20.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 |
Public Member Functions inherited from clang::Expr::EvalStatus | |
EvalStatus ()=default | |
bool | hasSideEffects () const |
Public Attributes | |
APValue | Val |
Val - This is the value the expression can be folded to. | |
Public Attributes inherited from clang::Expr::EvalStatus | |
bool | HasSideEffects = false |
Whether the evaluated expression has side effects. | |
bool | HasUndefinedBehavior = false |
Whether the evaluation hit undefined behavior. | |
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). | |
EvalResult is a struct with detailed info about an evaluated expression.
bool Expr::EvalResult::isGlobalLValue | ( | ) | const |
Definition at line 16469 of file ExprConstant.cpp.
References clang::APValue::getLValueBase(), IsGlobalLValue(), and clang::APValue::isLValue().
Referenced by clang::Sema::FillInlineAsmIdentifierInfo().
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::SemaOpenACC::ActOnArraySectionExpr(), clang::Sema::ActOnGCCAsmStmt(), clang::SemaOpenMP::ActOnOMPArrayShapingExpr(), BuiltinAlignment(), calculateConstraintSatisfaction(), canConvertIntToOtherIntTy(), canConvertIntTyToFloatTy(), clang::Sema::CheckAdditionOperands(), clang::SemaAMDGPU::CheckAMDGCNBuiltinFunctionCall(), clang::Sema::checkCall(), CheckEvalInICE(), clang::Sema::CheckForImmediateInvocation(), checkFormatStringExpr(), clang::Sema::CheckImplicitConversion(), clang::Sema::CheckLogicalOperands(), checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::Sema::CheckSubtractionOperands(), clang::Sema::ConstantFoldAttrArgs(), DiagnoseBadDivideOrRemainderValues(), DiagnoseBadShiftValues(), diagnoseWellFormedUnsatisfiedConstraintExpr(), EvaluateAndDiagnoseImmediateInvocation(), clang::Sema::EvaluateConvertedConstantExpression(), clang::Sema::FillInlineAsmIdentifierInfo(), clang::CodeGen::CodeGenModule::GetAddrOfGlobalTemporary(), clang::Expr::getAsBuiltinConstantDeclRef(), GetExprRange(), clang::StandardConversionSequence::getNarrowingKind(), isNullPointerValueTemplateArgument(), clang::InitializationSequence::Perform(), shouldAddCase(), and clang::Sema::VerifyIntegerConstantExpression().