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 5444 of file Expr.h.
References D.
Referenced by clang::ASTNodeImporter::import().
|
inlinestatic |
Creates a GNU array-range designator.
Definition at line 5454 of file Expr.h.
References D.
Referenced by clang::ASTNodeImporter::import().
|
inlinestatic |
Creates a field designator.
Definition at line 5408 of file Expr.h.
References D.
Referenced by clang::ASTNodeImporter::import().
|
inline |
Definition at line 5465 of file Expr.h.
References ArrayOrRangeInfo, isArrayDesignator(), and isArrayRangeDesignator().
|
inline |
Definition at line 5489 of file Expr.h.
References getDotLoc(), getFieldLoc(), getLBracketLoc(), isFieldDesignator(), and clang::SourceLocation::isInvalid().
Referenced by clang::DesignatedInitExpr::getDesignatorsSourceRange(), and getSourceRange().
|
inline |
Definition at line 5430 of file Expr.h.
References FieldInfo, and isFieldDesignator().
Referenced by ExpandAnonymousFieldDesignator(), getBeginLoc(), and clang::DesignatedInitExpr::getBeginLoc().
|
inline |
Definition at line 5477 of file Expr.h.
References ArrayOrRangeInfo, and isArrayRangeDesignator().
|
inline |
Definition at line 5495 of file Expr.h.
References getFieldLoc(), getRBracketLoc(), and isFieldDesignator().
Referenced by getSourceRange().
|
inline |
Definition at line 5418 of file Expr.h.
References FieldInfo, and isFieldDesignator().
Referenced by getFieldName().
|
inline |
Definition at line 5435 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 4563 of file Expr.cpp.
References FieldInfo, getFieldDecl(), clang::NamedDecl::getIdentifier(), and isFieldDesignator().
|
inline |
Definition at line 5471 of file Expr.h.
References ArrayOrRangeInfo, isArrayDesignator(), and isArrayRangeDesignator().
Referenced by getBeginLoc().
|
inline |
Definition at line 5483 of file Expr.h.
References ArrayOrRangeInfo, isArrayDesignator(), and isArrayRangeDesignator().
Referenced by getEndLoc().
|
inline |
Definition at line 5499 of file Expr.h.
References getBeginLoc(), and getEndLoc().
Referenced by clang::DesignatedInitExpr::getDesignatorsSourceRange().
|
inline |
Definition at line 5401 of file Expr.h.
References Kind.
Referenced by getArrayIndex(), getLBracketLoc(), and getRBracketLoc().
|
inline |
Definition at line 5402 of file Expr.h.
References Kind.
Referenced by getArrayIndex(), getEllipsisLoc(), getLBracketLoc(), and getRBracketLoc().
|
inline |
Definition at line 5400 of file Expr.h.
References Kind.
Referenced by getBeginLoc(), getDotLoc(), getEndLoc(), getFieldDecl(), getFieldLoc(), getFieldName(), and setFieldDecl().
|
inline |
Definition at line 5425 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 5392 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 5389 of file Expr.h.
Referenced by getDotLoc(), getFieldDecl(), getFieldLoc(), getFieldName(), and setFieldDecl().