clang 20.0.0git
Public Member Functions | Public Attributes | List of all members
clang::sema::CompoundScopeInfo Class Reference

Contains information about the compound statement currently being parsed. More...

#include "clang/Sema/ScopeInfo.h"

Public Member Functions

 CompoundScopeInfo (bool IsStmtExpr, FPOptions FPO)
 
void setHasEmptyLoopBodies ()
 

Public Attributes

bool HasEmptyLoopBodies = false
 Whether this compound statement contains ‘for’ or ‘while’ loops with empty bodies.
 
bool IsStmtExpr
 Whether this compound statement corresponds to a GNU statement expression.
 
FPOptions InitialFPFeatures
 FP options at the beginning of the compound statement, prior to any pragma.
 

Detailed Description

Contains information about the compound statement currently being parsed.

Definition at line 67 of file ScopeInfo.h.

Constructor & Destructor Documentation

◆ CompoundScopeInfo()

clang::sema::CompoundScopeInfo::CompoundScopeInfo ( bool  IsStmtExpr,
FPOptions  FPO 
)
inline

Definition at line 81 of file ScopeInfo.h.

Member Function Documentation

◆ setHasEmptyLoopBodies()

void clang::sema::CompoundScopeInfo::setHasEmptyLoopBodies ( )
inline

Definition at line 84 of file ScopeInfo.h.

References HasEmptyLoopBodies.

Referenced by clang::Sema::ActOnForStmt(), and clang::Sema::ActOnWhileStmt().

Member Data Documentation

◆ HasEmptyLoopBodies

bool clang::sema::CompoundScopeInfo::HasEmptyLoopBodies = false

Whether this compound statement contains ‘for’ or ‘while’ loops with empty bodies.

Definition at line 71 of file ScopeInfo.h.

Referenced by setHasEmptyLoopBodies().

◆ InitialFPFeatures

FPOptions clang::sema::CompoundScopeInfo::InitialFPFeatures

FP options at the beginning of the compound statement, prior to any pragma.

Definition at line 79 of file ScopeInfo.h.

Referenced by clang::Sema::ActOnCompoundStmt().

◆ IsStmtExpr

bool clang::sema::CompoundScopeInfo::IsStmtExpr

Whether this compound statement corresponds to a GNU statement expression.

Definition at line 75 of file ScopeInfo.h.


The documentation for this class was generated from the following file: