clang API Documentation

Public Member Functions | Friends
clang::DesignatedInitExpr::Designator Class Reference

Represents a single C99 designator. More...

#include <Expr.h>

Collaboration diagram for clang::DesignatedInitExpr::Designator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Designator ()
 Designator (const IdentifierInfo *FieldName, SourceLocation DotLoc, SourceLocation FieldLoc)
 Initializes a field designator.
 Designator (unsigned Index, SourceLocation LBracketLoc, SourceLocation RBracketLoc)
 Initializes an array designator.
 Designator (unsigned Index, SourceLocation LBracketLoc, SourceLocation EllipsisLoc, SourceLocation RBracketLoc)
 Initializes a GNU array-range designator.
bool isFieldDesignator () const
bool isArrayDesignator () const
bool isArrayRangeDesignator () const
IdentifierInfogetFieldName () const
FieldDeclgetField () const
void setField (FieldDecl *FD)
SourceLocation getDotLoc () const
SourceLocation getFieldLoc () const
SourceLocation getLBracketLoc () const
SourceLocation getRBracketLoc () const
SourceLocation getEllipsisLoc () const
unsigned getFirstExprIndex () const
SourceLocation getLocStart () const LLVM_READONLY
SourceLocation getLocEnd () const LLVM_READONLY
SourceRange getSourceRange () const LLVM_READONLY

Friends

class DesignatedInitExpr

Detailed Description

Represents a single C99 designator.

Todo:
This class is infuriatingly similar to clang::Designator, but minor differences (storing indices vs. storing pointers) keep us from reusing it. Try harder, later, to rectify these differences.

Definition at line 4034 of file Expr.h.


Constructor & Destructor Documentation

Definition at line 4051 of file Expr.h.

clang::DesignatedInitExpr::Designator::Designator ( const IdentifierInfo FieldName,
SourceLocation  DotLoc,
SourceLocation  FieldLoc 
) [inline]
clang::DesignatedInitExpr::Designator::Designator ( unsigned  Index,
SourceLocation  LBracketLoc,
SourceLocation  RBracketLoc 
) [inline]
clang::DesignatedInitExpr::Designator::Designator ( unsigned  Index,
SourceLocation  LBracketLoc,
SourceLocation  EllipsisLoc,
SourceLocation  RBracketLoc 
) [inline]

Member Function Documentation

Definition at line 4088 of file Expr.h.

References Field, and clang::DesignatedInitExpr::FieldDesignator::NameOrField.

Referenced by getFieldName().

Definition at line 4144 of file Expr.h.

References getLocEnd(), and getLocStart().

Referenced by clang::DesignatedInitExpr::getDesignatorsSourceRange().

Definition at line 4083 of file Expr.h.

Definition at line 4084 of file Expr.h.

Definition at line 4082 of file Expr.h.

Referenced by clang::DesignatedInitExpr::getLocStart().

Definition at line 4096 of file Expr.h.

References Field, and clang::DesignatedInitExpr::FieldDesignator::NameOrField.


Friends And Related Function Documentation

friend class DesignatedInitExpr [friend]

Definition at line 4048 of file Expr.h.


Member Data Documentation

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().


The documentation for this class was generated from the following files: