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 4592 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