class DesignatedInitExpr::Designator
Declaration
class DesignatedInitExpr::Designator { /* full declaration omitted */ };
Description
Represents a single C99 designator.
Declared at: clang/include/clang/AST/Expr.h:5104
Member Variables
- private enum(unnamed enum at / home / hdoc / tmp / llvm - project / clang / include / clang / AST / Expr.h : 5106 : 5) Kind
- private anonymous struct / union
Method Overview
- public Designator(const clang::IdentifierInfo * FieldName, clang::SourceLocation DotLoc, clang::SourceLocation FieldLoc)
- public Designator(unsigned int Index, clang::SourceLocation LBracketLoc, clang::SourceLocation RBracketLoc)
- public Designator(unsigned int Index, clang::SourceLocation LBracketLoc, clang::SourceLocation EllipsisLoc, clang::SourceLocation RBracketLoc)
- public Designator()
- public clang::SourceLocation getBeginLoc() const
- public clang::SourceLocation getDotLoc() const
- public clang::SourceLocation getEllipsisLoc() const
- public clang::SourceLocation getEndLoc() const
- public clang::FieldDecl * getField() const
- public clang::SourceLocation getFieldLoc() const
- public clang::IdentifierInfo * getFieldName() const
- public unsigned int getFirstExprIndex() const
- public clang::SourceLocation getLBracketLoc() const
- public clang::SourceLocation getRBracketLoc() const
- public clang::SourceRange getSourceRange() const
- public bool isArrayDesignator() const
- public bool isArrayRangeDesignator() const
- public bool isFieldDesignator() const
- public void setField(clang::FieldDecl * FD)
Methods
¶Designator(const clang::IdentifierInfo* FieldName,
clang::SourceLocation DotLoc,
clang::SourceLocation FieldLoc)
Designator(const clang::IdentifierInfo* FieldName,
clang::SourceLocation DotLoc,
clang::SourceLocation FieldLoc)
Description
Initializes a field designator.
Declared at: clang/include/clang/AST/Expr.h:5124
Parameters
- const clang::IdentifierInfo* FieldName
- clang::SourceLocation DotLoc
- clang::SourceLocation FieldLoc
¶Designator(unsigned int Index,
clang::SourceLocation LBracketLoc,
clang::SourceLocation RBracketLoc)
Designator(unsigned int Index,
clang::SourceLocation LBracketLoc,
clang::SourceLocation RBracketLoc)
Description
Initializes an array designator.
Declared at: clang/include/clang/AST/Expr.h:5134
Parameters
- unsigned int Index
- clang::SourceLocation LBracketLoc
- clang::SourceLocation RBracketLoc
¶Designator(unsigned int Index,
clang::SourceLocation LBracketLoc,
clang::SourceLocation EllipsisLoc,
clang::SourceLocation RBracketLoc)
Designator(unsigned int Index,
clang::SourceLocation LBracketLoc,
clang::SourceLocation EllipsisLoc,
clang::SourceLocation RBracketLoc)
Description
Initializes a GNU array-range designator.
Declared at: clang/include/clang/AST/Expr.h:5145
Parameters
- unsigned int Index
- clang::SourceLocation LBracketLoc
- clang::SourceLocation EllipsisLoc
- clang::SourceLocation RBracketLoc
¶Designator()
Designator()
Declared at: clang/include/clang/AST/Expr.h:5121
¶clang::SourceLocation getBeginLoc() const
clang::SourceLocation getBeginLoc() const
Declared at: clang/include/clang/AST/Expr.h:5208
¶clang::SourceLocation getDotLoc() const
clang::SourceLocation getDotLoc() const
Declared at: clang/include/clang/AST/Expr.h:5174
¶clang::SourceLocation getEllipsisLoc() const
clang::SourceLocation getEllipsisLoc() const
Declared at: clang/include/clang/AST/Expr.h:5196
¶clang::SourceLocation getEndLoc() const
clang::SourceLocation getEndLoc() const
Declared at: clang/include/clang/AST/Expr.h:5214
¶clang::FieldDecl* getField() const
clang::FieldDecl* getField() const
Declared at: clang/include/clang/AST/Expr.h:5161
¶clang::SourceLocation getFieldLoc() const
clang::SourceLocation getFieldLoc() const
Declared at: clang/include/clang/AST/Expr.h:5179
¶clang::IdentifierInfo* getFieldName() const
clang::IdentifierInfo* getFieldName() const
Declared at: clang/include/clang/AST/Expr.h:5159
¶unsigned int getFirstExprIndex() const
unsigned int getFirstExprIndex() const
Declared at: clang/include/clang/AST/Expr.h:5202
¶clang::SourceLocation getLBracketLoc() const
clang::SourceLocation getLBracketLoc() const
Declared at: clang/include/clang/AST/Expr.h:5184
¶clang::SourceLocation getRBracketLoc() const
clang::SourceLocation getRBracketLoc() const
Declared at: clang/include/clang/AST/Expr.h:5190
¶clang::SourceRange getSourceRange() const
clang::SourceRange getSourceRange() const
Declared at: clang/include/clang/AST/Expr.h:5217
¶bool isArrayDesignator() const
bool isArrayDesignator() const
Declared at: clang/include/clang/AST/Expr.h:5156
¶bool isArrayRangeDesignator() const
bool isArrayRangeDesignator() const
Declared at: clang/include/clang/AST/Expr.h:5157
¶bool isFieldDesignator() const
bool isFieldDesignator() const
Declared at: clang/include/clang/AST/Expr.h:5155
¶void setField(clang::FieldDecl* FD)
void setField(clang::FieldDecl* FD)
Declared at: clang/include/clang/AST/Expr.h:5169
Parameters
- clang::FieldDecl* FD