[PATCH] Add DiagnosticSuppressionScope RAII class

Brad King brad.king at kitware.com
Thu Nov 20 06:27:43 PST 2014

On 11/19/2014 11:22 PM, Richard Smith wrote:
> once you enter this mode, you can't
> reasonably leave it again. For that, you can just set the
> SuppressAllDiagnostics flag on the DiagnosticsEngine.

SuppressAllDiagnostics prevents DiagnosticErrorTrap from working
so any analysis in Clang that uses traps fails to work correctly.
We need error traps to work for correct analysis but no actual
diagnostics to be emitted or output files aborted.


More information about the cfe-commits mailing list