clang 24.0.0git
clang::ForceSystemWarningsRAII Class Reference

RAII class that temporarily forces warnings in system headers and system macros to be shown on a DiagnosticsEngine and restores the previous state on destruction. More...

#include "clang/Basic/Diagnostic.h"

Public Member Functions

 ForceSystemWarningsRAII (DiagnosticsEngine &Diag, bool Force=true)
 ~ForceSystemWarningsRAII ()

Detailed Description

RAII class that temporarily forces warnings in system headers and system macros to be shown on a DiagnosticsEngine and restores the previous state on destruction.

Use it to ask what a diagnostic's severity would be if the location were not in a system header.

Definition at line 1177 of file Diagnostic.h.

Constructor & Destructor Documentation

◆ ForceSystemWarningsRAII()

clang::ForceSystemWarningsRAII::ForceSystemWarningsRAII ( DiagnosticsEngine & Diag,
bool Force = true )
inlineexplicit

Definition at line 1182 of file Diagnostic.h.

◆ ~ForceSystemWarningsRAII()

clang::ForceSystemWarningsRAII::~ForceSystemWarningsRAII ( )
inline

Definition at line 1187 of file Diagnostic.h.


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