clang
3.7.0
|
Diagnostic consumer that forwards diagnostics along to an existing, already-initialized diagnostic consumer. More...
#include <Diagnostic.h>
Public Member Functions | |
ForwardingDiagnosticConsumer (DiagnosticConsumer &Target) | |
~ForwardingDiagnosticConsumer () override | |
void | HandleDiagnostic (DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info) override |
Handle this diagnostic, reporting it to the user or capturing it to a log as needed. More... | |
void | clear () override |
bool | IncludeInDiagnosticCounts () const override |
Indicates whether the diagnostics handled by this DiagnosticConsumer should be included in the number of diagnostics reported by DiagnosticsEngine. More... | |
![]() | |
DiagnosticConsumer () | |
unsigned | getNumErrors () const |
unsigned | getNumWarnings () const |
virtual | ~DiagnosticConsumer () |
virtual void | BeginSourceFile (const LangOptions &LangOpts, const Preprocessor *PP=nullptr) |
Callback to inform the diagnostic client that processing of a source file is beginning. More... | |
virtual void | EndSourceFile () |
Callback to inform the diagnostic client that processing of a source file has ended. More... | |
virtual void | finish () |
Callback to inform the diagnostic client that processing of all source files has ended. More... | |
Additional Inherited Members | |
![]() | |
unsigned | NumWarnings |
Number of warnings reported. More... | |
unsigned | NumErrors |
Number of errors reported. More... | |
Diagnostic consumer that forwards diagnostics along to an existing, already-initialized diagnostic consumer.
Definition at line 1376 of file Diagnostic.h.
|
inline |
Definition at line 1380 of file Diagnostic.h.
|
override |
Definition at line 988 of file Diagnostic.cpp.
|
overridevirtual |
Reimplemented from clang::DiagnosticConsumer.
Definition at line 996 of file Diagnostic.cpp.
References clang::DiagnosticConsumer::clear().
|
overridevirtual |
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.
Reimplemented from clang::DiagnosticConsumer.
Definition at line 990 of file Diagnostic.cpp.
References clang::DiagnosticConsumer::HandleDiagnostic().
|
overridevirtual |
Indicates whether the diagnostics handled by this DiagnosticConsumer should be included in the number of diagnostics reported by DiagnosticsEngine.
The default implementation returns true.
IncludeInDiagnosticCounts - This method (whose default implementation returns true) indicates whether the diagnostics handled by this DiagnosticConsumer should be included in the number of diagnostics reported by DiagnosticsEngine.
Reimplemented from clang::DiagnosticConsumer.
Definition at line 1001 of file Diagnostic.cpp.
References clang::DiagnosticConsumer::IncludeInDiagnosticCounts().