clang 24.0.0git
clang::IgnoreAllWarningDiagRAII Class Reference

RAII class that temporarily sets the "ignore all warnings" state on a DiagnosticsEngine and restores the previous state on destruction. More...

#include "clang/Basic/Diagnostic.h"

Public Member Functions

 IgnoreAllWarningDiagRAII (DiagnosticsEngine &Diag)
 ~IgnoreAllWarningDiagRAII ()

Detailed Description

RAII class that temporarily sets the "ignore all warnings" state on a DiagnosticsEngine and restores the previous state on destruction.

Use it to silence warnings around a self-contained region of diagnostics, such as a compiler-synthesized call whose arguments are known to be correct.

Definition at line 1131 of file Diagnostic.h.

Constructor & Destructor Documentation

◆ IgnoreAllWarningDiagRAII()

clang::IgnoreAllWarningDiagRAII::IgnoreAllWarningDiagRAII ( DiagnosticsEngine & Diag)
inlineexplicit

Definition at line 1136 of file Diagnostic.h.

◆ ~IgnoreAllWarningDiagRAII()

clang::IgnoreAllWarningDiagRAII::~IgnoreAllWarningDiagRAII ( )
inline

Definition at line 1140 of file Diagnostic.h.


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