clang  16.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"

Collaboration diagram for clang::sema::CompoundScopeInfo:
Collaboration graph
[legend]

Public Member Functions

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

Public Attributes

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

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.

Member Data Documentation

◆ HasEmptyLoopBodies

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

Whether this compound stamement 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.

◆ 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: