clang  6.0.0svn
Public Member Functions | List of all members
clang::Designation Class Reference

Designation - Represent a full designation, which is a sequence of designators. More...

#include "clang/Sema/Designator.h"

Public Member Functions

void AddDesignator (Designator D)
 AddDesignator - Add a designator to the end of this list. More...
 
bool empty () const
 
unsigned getNumDesignators () const
 
const DesignatorgetDesignator (unsigned Idx) const
 
void ClearExprs (Sema &Actions)
 ClearExprs - Null out any expression references, which prevents them from being 'delete'd later. More...
 
void FreeExprs (Sema &Actions)
 FreeExprs - Release any unclaimed memory for the expressions in this designation. More...
 

Detailed Description

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.

Member Function Documentation

◆ AddDesignator()

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.

Referenced by CheckArrayDesignatorSyntax().

◆ ClearExprs()

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

◆ empty()

bool clang::Designation::empty ( ) const
inline

Definition at line 191 of file Designator.h.

Referenced by CheckArrayDesignatorSyntax().

◆ FreeExprs()

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.

◆ getDesignator()

const Designator& clang::Designation::getDesignator ( unsigned  Idx) const
inline

◆ getNumDesignators()

unsigned clang::Designation::getNumDesignators ( ) const
inline

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