clang API Documentation
#include <RAIIObjectsForParser.h>
Public Member Functions | |
ExtensionRAIIObject (DiagnosticsEngine &diags) | |
~ExtensionRAIIObject () |
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 246 of file RAIIObjectsForParser.h.
clang::ExtensionRAIIObject::ExtensionRAIIObject | ( | DiagnosticsEngine & | diags | ) | [inline] |
Definition at line 252 of file RAIIObjectsForParser.h.
References clang::DiagnosticsEngine::IncrementAllExtensionsSilenced().
clang::ExtensionRAIIObject::~ExtensionRAIIObject | ( | ) | [inline] |
Definition at line 256 of file RAIIObjectsForParser.h.
References clang::DiagnosticsEngine::DecrementAllExtensionsSilenced().