clang 22.0.0git
clang::ExtensionRAIIObject Class Reference

ExtensionRAIIObject - This saves the state of extension warnings when constructed and disables them. More...

#include "clang/Parse/RAIIObjectsForParser.h"

Public Member Functions

 ExtensionRAIIObject (DiagnosticsEngine &diags)
 ~ExtensionRAIIObject ()

Detailed Description

ExtensionRAIIObject - This saves the state of extension warnings when constructed and disables them.

When destructed, it restores them back to the way they used to be. This is used to handle extension in the parser.

Definition at line 255 of file RAIIObjectsForParser.h.

Constructor & Destructor Documentation

◆ ExtensionRAIIObject()

clang::ExtensionRAIIObject::ExtensionRAIIObject ( DiagnosticsEngine & diags)
inline

Definition at line 261 of file RAIIObjectsForParser.h.

◆ ~ExtensionRAIIObject()

clang::ExtensionRAIIObject::~ExtensionRAIIObject ( )
inline

Definition at line 265 of file RAIIObjectsForParser.h.


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