clang API Documentation
RAII object used to inform the actions that we're currently parsing a declaration. This is active when parsing a variable's initializer, but not when parsing the body of a class or function definition. More...
#include <RAIIObjectsForParser.h>
Public Types | |
enum | NoParent_t { NoParent } |
Public Member Functions | |
ParsingDeclRAIIObject (Parser &P, NoParent_t _) | |
ParsingDeclRAIIObject (Parser &P, const sema::DelayedDiagnosticPool *parentPool) | |
Creates a RAII object whose pool is optionally parented by another. | |
ParsingDeclRAIIObject (Parser &P, ParsingDeclRAIIObject *other) | |
~ParsingDeclRAIIObject () | |
sema::DelayedDiagnosticPool & | getDelayedDiagnosticPool () |
const sema::DelayedDiagnosticPool & | getDelayedDiagnosticPool () const |
void | reset () |
Resets the RAII object for a new declaration. | |
void | abort () |
void | complete (Decl *D) |
void | abortAndRemember () |
RAII object used to inform the actions that we're currently parsing a declaration. This is active when parsing a variable's initializer, but not when parsing the body of a class or function definition.
Definition at line 84 of file RAIIObjectsForParser.h.
Definition at line 94 of file RAIIObjectsForParser.h.
clang::ParsingDeclRAIIObject::ParsingDeclRAIIObject | ( | Parser & | P, |
NoParent_t | _ | ||
) | [inline] |
Definition at line 95 of file RAIIObjectsForParser.h.
clang::ParsingDeclRAIIObject::ParsingDeclRAIIObject | ( | Parser & | P, |
const sema::DelayedDiagnosticPool * | parentPool | ||
) | [inline] |
Creates a RAII object whose pool is optionally parented by another.
Definition at line 101 of file RAIIObjectsForParser.h.
clang::ParsingDeclRAIIObject::ParsingDeclRAIIObject | ( | Parser & | P, |
ParsingDeclRAIIObject * | other | ||
) | [inline] |
Creates a RAII object and, optionally, initialize its diagnostics pool by stealing the diagnostics from another RAII object (which is assumed to be the current top pool).
Definition at line 110 of file RAIIObjectsForParser.h.
References abort(), and clang::sema::DelayedDiagnosticPool::steal().
clang::ParsingDeclRAIIObject::~ParsingDeclRAIIObject | ( | ) | [inline] |
Definition at line 120 of file RAIIObjectsForParser.h.
References abort().
void clang::ParsingDeclRAIIObject::abort | ( | ) | [inline] |
Signals that the context was completed without an appropriate declaration being parsed.
Definition at line 139 of file RAIIObjectsForParser.h.
Referenced by clang::ParsingDeclSpec::abort(), ParsingDeclRAIIObject(), reset(), and ~ParsingDeclRAIIObject().
void clang::ParsingDeclRAIIObject::abortAndRemember | ( | ) | [inline] |
Unregister this object from Sema, but remember all the diagnostics that were emitted into it.
Definition at line 150 of file RAIIObjectsForParser.h.
void clang::ParsingDeclRAIIObject::complete | ( | Decl * | D | ) | [inline] |
Definition at line 143 of file RAIIObjectsForParser.h.
Referenced by clang::ParsingDeclSpec::complete(), clang::ParsingDeclarator::complete(), and clang::ParsingFieldDeclarator::complete().
Definition at line 124 of file RAIIObjectsForParser.h.
Referenced by clang::ParsingDeclSpec::getDelayedDiagnosticPool().
const sema::DelayedDiagnosticPool& clang::ParsingDeclRAIIObject::getDelayedDiagnosticPool | ( | ) | const [inline] |
Definition at line 127 of file RAIIObjectsForParser.h.
void clang::ParsingDeclRAIIObject::reset | ( | ) | [inline] |
Resets the RAII object for a new declaration.
Definition at line 132 of file RAIIObjectsForParser.h.
References abort().
Referenced by clang::ParsingDeclarator::clear().