clang API Documentation
Represents a single C99 designator. More...
#include <Expr.h>
Represents a single C99 designator.
clang::DesignatedInitExpr::Designator::Designator | ( | ) | [inline] |
clang::DesignatedInitExpr::Designator::Designator | ( | const IdentifierInfo * | FieldName, |
SourceLocation | DotLoc, | ||
SourceLocation | FieldLoc | ||
) | [inline] |
Initializes a field designator.
Definition at line 4054 of file Expr.h.
References clang::DesignatedInitExpr::FieldDesignator::DotLoc, Field, clang::DesignatedInitExpr::FieldDesignator::FieldLoc, clang::SourceLocation::getRawEncoding(), and clang::DesignatedInitExpr::FieldDesignator::NameOrField.
clang::DesignatedInitExpr::Designator::Designator | ( | unsigned | Index, |
SourceLocation | LBracketLoc, | ||
SourceLocation | RBracketLoc | ||
) | [inline] |
Initializes an array designator.
Definition at line 4063 of file Expr.h.
References ArrayOrRange, clang::DesignatedInitExpr::ArrayOrRangeDesignator::EllipsisLoc, clang::SourceLocation::getRawEncoding(), clang::DesignatedInitExpr::ArrayOrRangeDesignator::Index, clang::DesignatedInitExpr::ArrayOrRangeDesignator::LBracketLoc, and clang::DesignatedInitExpr::ArrayOrRangeDesignator::RBracketLoc.
clang::DesignatedInitExpr::Designator::Designator | ( | unsigned | Index, |
SourceLocation | LBracketLoc, | ||
SourceLocation | EllipsisLoc, | ||
SourceLocation | RBracketLoc | ||
) | [inline] |
Initializes a GNU array-range designator.
Definition at line 4073 of file Expr.h.
References ArrayOrRange, clang::DesignatedInitExpr::ArrayOrRangeDesignator::EllipsisLoc, clang::SourceLocation::getRawEncoding(), clang::DesignatedInitExpr::ArrayOrRangeDesignator::Index, clang::DesignatedInitExpr::ArrayOrRangeDesignator::LBracketLoc, and clang::DesignatedInitExpr::ArrayOrRangeDesignator::RBracketLoc.
SourceLocation clang::DesignatedInitExpr::Designator::getDotLoc | ( | ) | const [inline] |
Definition at line 4101 of file Expr.h.
References clang::DesignatedInitExpr::FieldDesignator::DotLoc, Field, and clang::SourceLocation::getFromRawEncoding().
Referenced by ExpandAnonymousFieldDesignator(), and getLocStart().
SourceLocation clang::DesignatedInitExpr::Designator::getEllipsisLoc | ( | ) | const [inline] |
Definition at line 4123 of file Expr.h.
References ArrayOrRange, clang::DesignatedInitExpr::ArrayOrRangeDesignator::EllipsisLoc, and clang::SourceLocation::getFromRawEncoding().
FieldDecl* clang::DesignatedInitExpr::Designator::getField | ( | ) | const [inline] |
Definition at line 4088 of file Expr.h.
References Field, and clang::DesignatedInitExpr::FieldDesignator::NameOrField.
Referenced by getFieldName().
SourceLocation clang::DesignatedInitExpr::Designator::getFieldLoc | ( | ) | const [inline] |
Definition at line 4106 of file Expr.h.
References Field, clang::DesignatedInitExpr::FieldDesignator::FieldLoc, and clang::SourceLocation::getFromRawEncoding().
Referenced by ExpandAnonymousFieldDesignator(), getLocEnd(), and getLocStart().
Definition at line 3768 of file Expr.cpp.
References Field, getField(), clang::NamedDecl::getIdentifier(), and clang::DesignatedInitExpr::FieldDesignator::NameOrField.
unsigned clang::DesignatedInitExpr::Designator::getFirstExprIndex | ( | ) | const [inline] |
Definition at line 4129 of file Expr.h.
References ArrayOrRange, and clang::DesignatedInitExpr::ArrayOrRangeDesignator::Index.
SourceLocation clang::DesignatedInitExpr::Designator::getLBracketLoc | ( | ) | const [inline] |
Definition at line 4111 of file Expr.h.
References ArrayOrRange, clang::SourceLocation::getFromRawEncoding(), and clang::DesignatedInitExpr::ArrayOrRangeDesignator::LBracketLoc.
Referenced by getLocStart().
SourceLocation clang::DesignatedInitExpr::Designator::getLocEnd | ( | ) | const [inline] |
Definition at line 4141 of file Expr.h.
References getFieldLoc(), and getRBracketLoc().
Referenced by clang::DesignatedInitExpr::getDesignatorsSourceRange(), and getSourceRange().
SourceLocation clang::DesignatedInitExpr::Designator::getLocStart | ( | ) | const [inline] |
Definition at line 4135 of file Expr.h.
References getDotLoc(), getFieldLoc(), getLBracketLoc(), and clang::SourceLocation::isInvalid().
Referenced by clang::DesignatedInitExpr::getDesignatorsSourceRange(), and getSourceRange().
SourceLocation clang::DesignatedInitExpr::Designator::getRBracketLoc | ( | ) | const [inline] |
Definition at line 4117 of file Expr.h.
References ArrayOrRange, clang::SourceLocation::getFromRawEncoding(), and clang::DesignatedInitExpr::ArrayOrRangeDesignator::RBracketLoc.
Referenced by getLocEnd().
SourceRange clang::DesignatedInitExpr::Designator::getSourceRange | ( | ) | const [inline] |
Definition at line 4144 of file Expr.h.
References getLocEnd(), and getLocStart().
Referenced by clang::DesignatedInitExpr::getDesignatorsSourceRange().
bool clang::DesignatedInitExpr::Designator::isArrayDesignator | ( | ) | const [inline] |
bool clang::DesignatedInitExpr::Designator::isArrayRangeDesignator | ( | ) | const [inline] |
bool clang::DesignatedInitExpr::Designator::isFieldDesignator | ( | ) | const [inline] |
Definition at line 4082 of file Expr.h.
Referenced by clang::DesignatedInitExpr::getLocStart().
void clang::DesignatedInitExpr::Designator::setField | ( | FieldDecl * | FD | ) | [inline] |
Definition at line 4096 of file Expr.h.
References Field, and clang::DesignatedInitExpr::FieldDesignator::NameOrField.
friend class DesignatedInitExpr [friend] |
An array or GNU array-range designator, e.g., "[9]" or "[10..15]".
Definition at line 4046 of file Expr.h.
Referenced by Designator(), clang::DesignatedInitExpr::getArrayIndex(), clang::DesignatedInitExpr::getArrayRangeEnd(), clang::DesignatedInitExpr::getArrayRangeStart(), getEllipsisLoc(), getFirstExprIndex(), getLBracketLoc(), clang::DesignatedInitExpr::getLocStart(), and getRBracketLoc().
A field designator, e.g., ".x".
Definition at line 4044 of file Expr.h.
Referenced by Designator(), getDotLoc(), getField(), getFieldLoc(), getFieldName(), clang::DesignatedInitExpr::getLocStart(), and setField().