clang  6.0.0svn
Public Member Functions | List of all members
clang::ColonProtectionRAIIObject Class Reference

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. More...
 
 ~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 271 of file RAIIObjectsForParser.h.

Constructor & Destructor Documentation

◆ ColonProtectionRAIIObject()

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

Definition at line 275 of file RAIIObjectsForParser.h.

◆ ~ColonProtectionRAIIObject()

clang::ColonProtectionRAIIObject::~ColonProtectionRAIIObject ( )
inline

Definition at line 286 of file RAIIObjectsForParser.h.

Member Function Documentation

◆ restore()

void clang::ColonProtectionRAIIObject::restore ( )
inline

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

Definition at line 282 of file RAIIObjectsForParser.h.

Referenced by TypeTraitArity().


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