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 47 of file RAIIObjectsForParser.h.


Constructor & Destructor Documentation

clang::ColonProtectionRAIIObject::ColonProtectionRAIIObject ( Parser p,
bool  Value = true 
) [inline]

Definition at line 51 of file RAIIObjectsForParser.h.

clang::ColonProtectionRAIIObject::~ColonProtectionRAIIObject ( ) [inline]

Definition at line 62 of file RAIIObjectsForParser.h.

References restore().


Member Function Documentation

void clang::ColonProtectionRAIIObject::restore ( ) [inline]

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

Definition at line 58 of file RAIIObjectsForParser.h.

Referenced by ~ColonProtectionRAIIObject().


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