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:
Method Overview
- public void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, const clang::Diagnostic & Info)
- public bool fatalError() const
Inherited from DiagnosticConsumer:
- public BeginSourceFile
- public EndSourceFile
- public HandleDiagnostic
- public IncludeInDiagnosticCounts
- public clear
- public finish
- public getNumErrors
- public getNumWarnings
Methods
¶void HandleDiagnostic(
DiagnosticsEngine::Level DiagLevel,
const clang::Diagnostic& Info)
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
bool fatalError() const
Declared at: clang/lib/Format/TokenAnalyzer.cpp:52