class FatalDiagnosticConsumer

Declaration

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

Description

Abstract interface, implemented by clients of the front-end, which formats and prints fully processed diagnostics.

Declared at: clang/lib/Format/TokenAnalyzer.cpp:40

Inherits from: DiagnosticConsumer

Member Variables

private bool Fatal = false

Inherited from DiagnosticConsumer:

protected NumWarnings = 0
protected NumErrors = 0

Method Overview

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/lib/Format/TokenAnalyzer.cpp:42

Parameters

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

bool fatalError() const

Declared at: clang/lib/Format/TokenAnalyzer.cpp:52