clang 20.0.0git
|
ColonProtectionRAIIObject - This sets the Parser::ColonIsSacred bool and restores it when destroyed. More...
#include "clang/Parse/RAIIObjectsForParser.h"
Public Member Functions | |
ColonProtectionRAIIObject (Parser &p, bool Value=true) | |
void | restore () |
restore - This can be used to restore the state early, before the dtor is run. | |
~ColonProtectionRAIIObject () | |
ColonProtectionRAIIObject - This sets the Parser::ColonIsSacred bool and restores it when destroyed.
This says that "foo:" should not be considered a possible typo for "foo::" for error recovery purposes.
Definition at line 273 of file RAIIObjectsForParser.h.
|
inline |
Definition at line 277 of file RAIIObjectsForParser.h.
References P.
|
inline |
Definition at line 288 of file RAIIObjectsForParser.h.
References restore().
|
inline |
restore - This can be used to restore the state early, before the dtor is run.
Definition at line 284 of file RAIIObjectsForParser.h.
References P.
Referenced by ~ColonProtectionRAIIObject().