clang API Documentation
#include <Designator.h>
Public Member Functions | |
void | AddDesignator (Designator D) |
AddDesignator - Add a designator to the end of this list. | |
bool | empty () const |
unsigned | getNumDesignators () const |
const Designator & | getDesignator (unsigned Idx) const |
void | ClearExprs (Sema &Actions) |
void | FreeExprs (Sema &Actions) |
Designation - Represent a full designation, which is a sequence of designators. This class is mostly a helper for InitListDesignations.
Definition at line 181 of file Designator.h.
void clang::Designation::AddDesignator | ( | Designator | D | ) | [inline] |
AddDesignator - Add a designator to the end of this list.
Definition at line 187 of file Designator.h.
void clang::Designation::ClearExprs | ( | Sema & | Actions | ) | [inline] |
ClearExprs - Null out any expression references, which prevents them from being 'delete'd later.
Definition at line 201 of file Designator.h.
Referenced by clang::Sema::ActOnDesignatedInitializer().
bool clang::Designation::empty | ( | ) | const [inline] |
Definition at line 191 of file Designator.h.
void clang::Designation::FreeExprs | ( | Sema & | Actions | ) | [inline] |
FreeExprs - Release any unclaimed memory for the expressions in this designation.
Definition at line 205 of file Designator.h.
const Designator& clang::Designation::getDesignator | ( | unsigned | Idx | ) | const [inline] |
Definition at line 194 of file Designator.h.
Referenced by clang::Sema::ActOnDesignatedInitializer(), and CheckArrayDesignatorSyntax().
unsigned clang::Designation::getNumDesignators | ( | ) | const [inline] |
Definition at line 193 of file Designator.h.
Referenced by clang::Sema::ActOnDesignatedInitializer(), and CheckArrayDesignatorSyntax().