clang 23.0.0git
clang::Sema::ForRangeBeginEndInfo Struct Reference

Holds the 'begin' and 'end' variables of a range-based for loop or expansion statement; begin-expr and end-expr are also provided; the latter are used in some diagnostics. More...

#include "clang/Sema/Sema.h"

Public Member Functions

bool isValid () const

Public Attributes

VarDeclBeginVar = nullptr
VarDeclEndVar = nullptr
ExprBeginExpr = nullptr
ExprEndExpr = nullptr

Detailed Description

Holds the 'begin' and 'end' variables of a range-based for loop or expansion statement; begin-expr and end-expr are also provided; the latter are used in some diagnostics.

Definition at line 11200 of file Sema.h.

Member Function Documentation

◆ isValid()

bool clang::Sema::ForRangeBeginEndInfo::isValid ( ) const
inline

Definition at line 11205 of file Sema.h.

References BeginVar, and EndVar.

Referenced by clang::Sema::BuildCXXForRangeStmt(), and TryBuildIterableExpansionStmtInitializer().

Member Data Documentation

◆ BeginExpr

Expr* clang::Sema::ForRangeBeginEndInfo::BeginExpr = nullptr

Definition at line 11203 of file Sema.h.

◆ BeginVar

VarDecl* clang::Sema::ForRangeBeginEndInfo::BeginVar = nullptr

Definition at line 11201 of file Sema.h.

Referenced by isValid(), and TryBuildIterableExpansionStmtInitializer().

◆ EndExpr

Expr* clang::Sema::ForRangeBeginEndInfo::EndExpr = nullptr

Definition at line 11204 of file Sema.h.

◆ EndVar

VarDecl* clang::Sema::ForRangeBeginEndInfo::EndVar = nullptr

Definition at line 11202 of file Sema.h.

Referenced by isValid().


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