PUMA Library Reference Manual
|
#include <Puma/CSemDeclSpecs.h>
Class for analysing a sequence of declaration specifiers.
The result of the analysis is a type, i.e. the type of the declared entity (function, object, etc).
Public Member Functions | |
CSemDeclSpecs (ErrorSink *es, CT_DeclSpecSeq *dss, bool support_implicit_int=false) | |
Constructor. | |
~CSemDeclSpecs () | |
Destructor. | |
CTypeInfo * | make_type () const |
Get a copy of the resulting type. | |
CT_DeclSpecSeq * | DeclSpecSeq () const |
Get the declaration specifier sequence. | |
bool | declared (CT_PrimDeclSpec::Type dst) const |
Check if the given declaration specifier was declared. | |
bool | defClass () const |
Check if a class was defined in the declaration specifier sequence. | |
bool | defUnion () const |
Check if an union was defined in the declaration specifier sequence. | |
bool | defEnum () const |
Check if an enumeration was defined in the declaration specifier sequence. | |
Puma::CSemDeclSpecs::CSemDeclSpecs | ( | ErrorSink * | es, |
CT_DeclSpecSeq * | dss, | ||
bool | support_implicit_int = false ) |
Constructor.
es | The error stream on which to report errors. |
dss | The declaration specifier sequence to be analysed. |
support_implicit_int | True if implicit type int shall be supported. |
|
inline |
Destructor.
Destroys the created type.
|
inline |
Check if the given declaration specifier was declared.
dst | The declaration specifier type. |
|
inline |
Get the declaration specifier sequence.
|
inline |
Check if a class was defined in the declaration specifier sequence.
|
inline |
Check if an enumeration was defined in the declaration specifier sequence.
|
inline |
Check if an union was defined in the declaration specifier sequence.
|
inline |
Get a copy of the resulting type.