clang 19.0.0git
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.
 
 ~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 273 of file RAIIObjectsForParser.h.

Constructor & Destructor Documentation

◆ ColonProtectionRAIIObject()

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

Definition at line 277 of file RAIIObjectsForParser.h.

References P.

◆ ~ColonProtectionRAIIObject()

clang::ColonProtectionRAIIObject::~ColonProtectionRAIIObject ( )
inline

Definition at line 288 of file RAIIObjectsForParser.h.

References restore().

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

References P.

Referenced by ~ColonProtectionRAIIObject().


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