clang 20.0.0git
|
RAII object used to inform the actions that we're currently parsing a declaration. More...
#include "clang/Parse/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) | |
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). | |
~ParsingDeclRAIIObject () | |
sema::DelayedDiagnosticPool & | getDelayedDiagnosticPool () |
const sema::DelayedDiagnosticPool & | getDelayedDiagnosticPool () const |
void | reset () |
Resets the RAII object for a new declaration. | |
void | abort () |
Signals that the context was completed without an appropriate declaration being parsed. | |
void | complete (Decl *D) |
void | abortAndRemember () |
Unregister this object from Sema, but remember all the diagnostics that were emitted into it. | |
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 90 of file RAIIObjectsForParser.h.
Enumerator | |
---|---|
NoParent |
Definition at line 100 of file RAIIObjectsForParser.h.
|
inline |
Definition at line 101 of file RAIIObjectsForParser.h.
|
inline |
Creates a RAII object whose pool is optionally parented by another.
Definition at line 107 of file RAIIObjectsForParser.h.
|
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 116 of file RAIIObjectsForParser.h.
References abort(), and clang::sema::DelayedDiagnosticPool::steal().
|
inline |
Definition at line 126 of file RAIIObjectsForParser.h.
References abort().
|
inline |
Signals that the context was completed without an appropriate declaration being parsed.
Definition at line 145 of file RAIIObjectsForParser.h.
Referenced by clang::ParsingDeclSpec::abort(), ParsingDeclRAIIObject(), reset(), and ~ParsingDeclRAIIObject().
|
inline |
Unregister this object from Sema, but remember all the diagnostics that were emitted into it.
Definition at line 156 of file RAIIObjectsForParser.h.
|
inline |
Definition at line 149 of file RAIIObjectsForParser.h.
References D.
Referenced by clang::ParsingDeclSpec::complete(), clang::ParsingDeclarator::complete(), and clang::ParsingFieldDeclarator::complete().
|
inline |
Definition at line 130 of file RAIIObjectsForParser.h.
Referenced by clang::ParsingDeclSpec::getDelayedDiagnosticPool().
|
inline |
Definition at line 133 of file RAIIObjectsForParser.h.
|
inline |
Resets the RAII object for a new declaration.
Definition at line 138 of file RAIIObjectsForParser.h.
References abort().
Referenced by clang::ParsingDeclarator::clear().