clang 20.0.0git
Public Member Functions | Public Attributes | List of all members
clang::Expr::EvalResult Struct Reference

EvalResult is a struct with detailed info about an evaluated expression. More...

#include "clang/AST/Expr.h"

Inheritance diagram for clang::Expr::EvalResult:
Inheritance graph
[legend]

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).
 

Detailed Description

EvalResult is a struct with detailed info about an evaluated expression.

Definition at line 642 of file Expr.h.

Member Function Documentation

◆ isGlobalLValue()

bool Expr::EvalResult::isGlobalLValue ( ) const

Member Data Documentation

◆ Val

APValue clang::Expr::EvalResult::Val

The documentation for this struct was generated from the following files: