class IgnoringDiagConsumer

Declaration

class IgnoringDiagConsumer : public DiagnosticConsumer { /* full declaration omitted */ };

Description

A diagnostic client that ignores all diagnostics.

Declared at: clang/include/clang/Basic/Diagnostic.h:1794

Inherits from: DiagnosticConsumer

Member Variables

Inherited from DiagnosticConsumer:

protected NumWarnings = 0
protected NumErrors = 0

Method Overview

  • private void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, const clang::Diagnostic & Info)
  • private virtual void anchor()

Inherited from DiagnosticConsumer:

Methods

void HandleDiagnostic(
    DiagnosticsEngine::Level DiagLevel,
    const clang::Diagnostic& Info)

Description

Handle this diagnostic, reporting it to the user or capturing it to a log as needed. The default implementation just keeps track of the total number of warnings and errors.

Declared at: clang/include/clang/Basic/Diagnostic.h:1797

Parameters

DiagnosticsEngine::Level DiagLevel
const clang::Diagnostic& Info

virtual void anchor()

Declared at: clang/include/clang/Basic/Diagnostic.h:1795