clang API Documentation

Public Member Functions
clang::ColonProtectionRAIIObject Class Reference

#include <RAIIObjectsForParser.h>

List of all members.

Public Member Functions

 ColonProtectionRAIIObject (Parser &p, bool Value=true)
void restore ()
 ~ColonProtectionRAIIObject ()

Detailed 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.

Definition at line 264 of file RAIIObjectsForParser.h.


Constructor & Destructor Documentation

Definition at line 268 of file RAIIObjectsForParser.h.

Definition at line 279 of file RAIIObjectsForParser.h.

References restore().


Member Function Documentation

restore - This can be used to restore the state early, before the dtor is run.

Definition at line 275 of file RAIIObjectsForParser.h.

Referenced by ~ColonProtectionRAIIObject().


The documentation for this class was generated from the following file: