clang 24.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

VarDecl * BeginVar = nullptr
VarDecl * EndVar = nullptr
Expr * BeginExpr = nullptr
Expr * EndExpr = 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 11184 of file Sema.h.

Member Function Documentation

◆ isValid()

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

Definition at line 11189 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 11187 of file Sema.h.

◆ BeginVar

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

Definition at line 11185 of file Sema.h.

Referenced by isValid(), and TryBuildIterableExpansionStmtInitializer().

◆ EndExpr

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

Definition at line 11188 of file Sema.h.

◆ EndVar

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

Definition at line 11186 of file Sema.h.

Referenced by isValid().


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