class ColonProtectionRAIIObject
Declaration
class ColonProtectionRAIIObject { /* full declaration omitted */ };
Description
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.
Declared at: clang/include/clang/Parse/RAIIObjectsForParser.h:273
Member Variables
- private clang::Parser& P
- private bool OldVal
Method Overview
- public ColonProtectionRAIIObject(clang::Parser & p, bool Value = true)
- public void restore()
- public ~ColonProtectionRAIIObject()
Methods
¶ColonProtectionRAIIObject(clang::Parser& p,
bool Value = true)
ColonProtectionRAIIObject(clang::Parser& p,
bool Value = true)
Declared at: clang/include/clang/Parse/RAIIObjectsForParser.h:277
Parameters
- clang::Parser& p
- bool Value = true
¶void restore()
void restore()
Description
restore - This can be used to restore the state early, before the dtor is run.
Declared at: clang/include/clang/Parse/RAIIObjectsForParser.h:284
¶~ColonProtectionRAIIObject()
~ColonProtectionRAIIObject()
Declared at: clang/include/clang/Parse/RAIIObjectsForParser.h:288