clang 20.0.0git
|
Represents a single C99 designator. More...
#include "clang/AST/Expr.h"
Public Member Functions | |
Designator () | |
bool | isFieldDesignator () const |
bool | isArrayDesignator () const |
bool | isArrayRangeDesignator () const |
const IdentifierInfo * | getFieldName () const |
FieldDecl * | getFieldDecl () const |
void | setFieldDecl (FieldDecl *FD) |
SourceLocation | getDotLoc () const |
SourceLocation | getFieldLoc () const |
unsigned | getArrayIndex () const |
SourceLocation | getLBracketLoc () const |
SourceLocation | getEllipsisLoc () const |
SourceLocation | getRBracketLoc () const |
SourceLocation | getBeginLoc () const LLVM_READONLY |
SourceLocation | getEndLoc () const LLVM_READONLY |
SourceRange | getSourceRange () const LLVM_READONLY |
Static Public Member Functions | |
static Designator | CreateFieldDesignator (const IdentifierInfo *FieldName, SourceLocation DotLoc, SourceLocation FieldLoc) |
Creates a field designator. | |
static Designator | CreateArrayDesignator (unsigned Index, SourceLocation LBracketLoc, SourceLocation RBracketLoc) |
Creates an array designator. | |
static Designator | CreateArrayRangeDesignator (unsigned Index, SourceLocation LBracketLoc, SourceLocation EllipsisLoc, SourceLocation RBracketLoc) |
Creates a GNU array-range designator. | |
Represents a single C99 designator.
|
inline |
|
inlinestatic |
Creates an array designator.
Definition at line 5493 of file Expr.h.
References D.
Referenced by clang::ASTNodeImporter::import().
|
inlinestatic |
Creates a GNU array-range designator.
Definition at line 5503 of file Expr.h.
References D.
Referenced by clang::ASTNodeImporter::import().
|
inlinestatic |
Creates a field designator.
Definition at line 5457 of file Expr.h.
References D.
Referenced by clang::ASTNodeImporter::import().
|
inline |
Definition at line 5514 of file Expr.h.
References ArrayOrRangeInfo, isArrayDesignator(), and isArrayRangeDesignator().
|
inline |
Definition at line 5538 of file Expr.h.
References getDotLoc(), getFieldLoc(), getLBracketLoc(), isFieldDesignator(), and clang::SourceLocation::isInvalid().
Referenced by clang::DesignatedInitExpr::getDesignatorsSourceRange(), and getSourceRange().
|
inline |
Definition at line 5479 of file Expr.h.
References FieldInfo, and isFieldDesignator().
Referenced by ExpandAnonymousFieldDesignator(), getBeginLoc(), and clang::DesignatedInitExpr::getBeginLoc().
|
inline |
Definition at line 5526 of file Expr.h.
References ArrayOrRangeInfo, and isArrayRangeDesignator().
|
inline |
Definition at line 5544 of file Expr.h.
References getFieldLoc(), getRBracketLoc(), and isFieldDesignator().
Referenced by getSourceRange().
|
inline |
Definition at line 5467 of file Expr.h.
References FieldInfo, and isFieldDesignator().
Referenced by getFieldName().
|
inline |
Definition at line 5484 of file Expr.h.
References FieldInfo, and isFieldDesignator().
Referenced by ExpandAnonymousFieldDesignator(), getBeginLoc(), clang::DesignatedInitExpr::getBeginLoc(), and getEndLoc().
const IdentifierInfo * DesignatedInitExpr::Designator::getFieldName | ( | ) | const |
Definition at line 4585 of file Expr.cpp.
References FieldInfo, getFieldDecl(), clang::NamedDecl::getIdentifier(), and isFieldDesignator().
|
inline |
Definition at line 5520 of file Expr.h.
References ArrayOrRangeInfo, isArrayDesignator(), and isArrayRangeDesignator().
Referenced by getBeginLoc().
|
inline |
Definition at line 5532 of file Expr.h.
References ArrayOrRangeInfo, isArrayDesignator(), and isArrayRangeDesignator().
Referenced by getEndLoc().
|
inline |
Definition at line 5548 of file Expr.h.
References getBeginLoc(), and getEndLoc().
Referenced by clang::DesignatedInitExpr::getDesignatorsSourceRange().
|
inline |
Definition at line 5450 of file Expr.h.
References Kind.
Referenced by getArrayIndex(), getLBracketLoc(), and getRBracketLoc().
|
inline |
Definition at line 5451 of file Expr.h.
References Kind.
Referenced by getArrayIndex(), getEllipsisLoc(), getLBracketLoc(), and getRBracketLoc().
|
inline |
Definition at line 5449 of file Expr.h.
References Kind.
Referenced by getBeginLoc(), getDotLoc(), getEndLoc(), getFieldDecl(), getFieldLoc(), getFieldName(), and setFieldDecl().
|
inline |
Definition at line 5474 of file Expr.h.
References FieldInfo, and isFieldDesignator().
struct ArrayOrRangeDesignatorInfo clang::DesignatedInitExpr::Designator::ArrayOrRangeInfo |
An array or GNU array-range designator, e.g., "[9]" or "[10..15]".
Definition at line 5441 of file Expr.h.
Referenced by getArrayIndex(), getEllipsisLoc(), getLBracketLoc(), and getRBracketLoc().
struct FieldDesignatorInfo clang::DesignatedInitExpr::Designator::FieldInfo |
A field designator, e.g., ".x".
Definition at line 5438 of file Expr.h.
Referenced by getDotLoc(), getFieldDecl(), getFieldLoc(), getFieldName(), and setFieldDecl().