clang
19.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. More... | |
static Designator | CreateArrayDesignator (unsigned Index, SourceLocation LBracketLoc, SourceLocation RBracketLoc) |
Creates an array designator. More... | |
static Designator | CreateArrayRangeDesignator (unsigned Index, SourceLocation LBracketLoc, SourceLocation EllipsisLoc, SourceLocation RBracketLoc) |
Creates a GNU array-range designator. More... | |
Represents a single C99 designator.
|
inline |
|
inlinestatic |
Creates an array designator.
Definition at line 5293 of file Expr.h.
Referenced by clang::ASTNodeImporter::import().
|
inlinestatic |
Creates a GNU array-range designator.
Definition at line 5303 of file Expr.h.
Referenced by clang::ASTNodeImporter::import().
|
inlinestatic |
Creates a field designator.
Definition at line 5257 of file Expr.h.
References FieldInfo.
Referenced by clang::ASTNodeImporter::import().
|
inline |
Definition at line 5314 of file Expr.h.
References ArrayOrRangeInfo, isArrayDesignator(), and isArrayRangeDesignator().
Referenced by clang::DesignatedInitExpr::getArrayIndex(), clang::DesignatedInitExpr::getArrayRangeEnd(), clang::DesignatedInitExpr::getArrayRangeStart(), and clang::ASTNodeImporter::import().
|
inline |
Definition at line 5338 of file Expr.h.
References getDotLoc(), getFieldLoc(), getLBracketLoc(), isFieldDesignator(), and clang::SourceLocation::isInvalid().
Referenced by clang::DesignatedInitExpr::getDesignatorsSourceRange(), and getSourceRange().
|
inline |
Definition at line 5279 of file Expr.h.
References FieldInfo, and isFieldDesignator().
Referenced by ExpandAnonymousFieldDesignator(), getBeginLoc(), clang::DesignatedInitExpr::getBeginLoc(), and clang::ASTNodeImporter::import().
|
inline |
Definition at line 5326 of file Expr.h.
References ArrayOrRangeInfo, and isArrayRangeDesignator().
Referenced by clang::ASTNodeImporter::import().
|
inline |
Definition at line 5344 of file Expr.h.
References getFieldLoc(), getRBracketLoc(), and isFieldDesignator().
Referenced by getSourceRange().
|
inline |
Definition at line 5267 of file Expr.h.
References FieldInfo, and isFieldDesignator().
Referenced by getFieldName().
|
inline |
Definition at line 5284 of file Expr.h.
References FieldInfo, and isFieldDesignator().
Referenced by ExpandAnonymousFieldDesignator(), getBeginLoc(), clang::DesignatedInitExpr::getBeginLoc(), getEndLoc(), and clang::ASTNodeImporter::import().
const IdentifierInfo * DesignatedInitExpr::Designator::getFieldName | ( | ) | const |
Definition at line 4602 of file Expr.cpp.
References FieldInfo, getFieldDecl(), clang::NamedDecl::getIdentifier(), and isFieldDesignator().
Referenced by clang::ASTNodeImporter::import().
|
inline |
Definition at line 5320 of file Expr.h.
References ArrayOrRangeInfo, isArrayDesignator(), and isArrayRangeDesignator().
Referenced by getBeginLoc(), and clang::ASTNodeImporter::import().
|
inline |
Definition at line 5332 of file Expr.h.
References ArrayOrRangeInfo, isArrayDesignator(), and isArrayRangeDesignator().
Referenced by getEndLoc(), and clang::ASTNodeImporter::import().
|
inline |
Definition at line 5348 of file Expr.h.
References getBeginLoc(), and getEndLoc().
Referenced by clang::DesignatedInitExpr::getDesignatorsSourceRange().
|
inline |
Definition at line 5250 of file Expr.h.
Referenced by getArrayIndex(), clang::DesignatedInitExpr::getArrayIndex(), getLBracketLoc(), getRBracketLoc(), and clang::ASTNodeImporter::import().
|
inline |
Definition at line 5251 of file Expr.h.
Referenced by getArrayIndex(), clang::DesignatedInitExpr::getArrayRangeEnd(), clang::DesignatedInitExpr::getArrayRangeStart(), getEllipsisLoc(), getLBracketLoc(), getRBracketLoc(), and clang::ASTNodeImporter::import().
|
inline |
Definition at line 5249 of file Expr.h.
Referenced by getBeginLoc(), getDotLoc(), getEndLoc(), getFieldDecl(), getFieldLoc(), getFieldName(), clang::ASTNodeImporter::import(), and setFieldDecl().
|
inline |
Definition at line 5274 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 5219 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 5219 of file Expr.h.
Referenced by CreateFieldDesignator(), getDotLoc(), getFieldDecl(), getFieldLoc(), getFieldName(), and setFieldDecl().