clang 22.0.0git
clang::Parser::ConditionDeclarationOrInitStatementState Struct Reference

Public Member Functions

 ConditionDeclarationOrInitStatementState (Parser &P, bool CanBeInitStatement, bool CanBeForRangeDecl)
bool resolved ()
void markNotExpression ()
bool markNotCondition ()
bool markNotForRangeDecl ()
bool update (TPResult IsDecl)
ConditionOrInitStatement result () const

Public Attributes

ParserP
bool CanBeExpression = true
bool CanBeCondition = true
bool CanBeInitStatement
bool CanBeForRangeDecl

Detailed Description

Definition at line 296 of file ParseTentative.cpp.

Constructor & Destructor Documentation

◆ ConditionDeclarationOrInitStatementState()

clang::Parser::ConditionDeclarationOrInitStatementState::ConditionDeclarationOrInitStatementState ( Parser & P,
bool CanBeInitStatement,
bool CanBeForRangeDecl )
inline

Definition at line 303 of file ParseTentative.cpp.

References CanBeForRangeDecl, CanBeInitStatement, P, and clang::Parser::Parser().

Member Function Documentation

◆ markNotCondition()

bool clang::Parser::ConditionDeclarationOrInitStatementState::markNotCondition ( )
inline

Definition at line 355 of file ParseTentative.cpp.

References CanBeCondition, and resolved().

◆ markNotExpression()

void clang::Parser::ConditionDeclarationOrInitStatementState::markNotExpression ( )
inline

◆ markNotForRangeDecl()

bool clang::Parser::ConditionDeclarationOrInitStatementState::markNotForRangeDecl ( )
inline

Definition at line 360 of file ParseTentative.cpp.

References CanBeForRangeDecl, and resolved().

◆ resolved()

bool clang::Parser::ConditionDeclarationOrInitStatementState::resolved ( )
inline

◆ result()

ConditionOrInitStatement clang::Parser::ConditionDeclarationOrInitStatementState::result ( ) const
inline

◆ update()

bool clang::Parser::ConditionDeclarationOrInitStatementState::update ( TPResult IsDecl)
inline

Member Data Documentation

◆ CanBeCondition

bool clang::Parser::ConditionDeclarationOrInitStatementState::CanBeCondition = true

Definition at line 299 of file ParseTentative.cpp.

Referenced by markNotCondition(), markNotExpression(), resolved(), result(), and update().

◆ CanBeExpression

bool clang::Parser::ConditionDeclarationOrInitStatementState::CanBeExpression = true

Definition at line 298 of file ParseTentative.cpp.

Referenced by markNotExpression(), resolved(), result(), and update().

◆ CanBeForRangeDecl

bool clang::Parser::ConditionDeclarationOrInitStatementState::CanBeForRangeDecl

◆ CanBeInitStatement

bool clang::Parser::ConditionDeclarationOrInitStatementState::CanBeInitStatement

◆ P

Parser& clang::Parser::ConditionDeclarationOrInitStatementState::P

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