clang API Documentation
Diagnostic consumer that forwards diagnostics along to an existing, already-initialized diagnostic consumer. More...
#include <Diagnostic.h>


Public Member Functions | |
| ForwardingDiagnosticConsumer (DiagnosticConsumer &Target) | |
| virtual | ~ForwardingDiagnosticConsumer () |
| 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. | |
| 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. | |
Diagnostic consumer that forwards diagnostics along to an existing, already-initialized diagnostic consumer.
Definition at line 1360 of file Diagnostic.h.
| clang::ForwardingDiagnosticConsumer::ForwardingDiagnosticConsumer | ( | DiagnosticConsumer & | Target | ) | [inline] |
Definition at line 1364 of file Diagnostic.h.
Definition at line 959 of file Diagnostic.cpp.
| void ForwardingDiagnosticConsumer::clear | ( | ) | [override, virtual] |
Reimplemented from clang::DiagnosticConsumer.
Definition at line 967 of file Diagnostic.cpp.
References clang::DiagnosticConsumer::clear().
| void ForwardingDiagnosticConsumer::HandleDiagnostic | ( | DiagnosticsEngine::Level | DiagLevel, |
| const Diagnostic & | Info | ||
| ) | [override, virtual] |
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 961 of file Diagnostic.cpp.
References clang::DiagnosticConsumer::HandleDiagnostic().
| bool ForwardingDiagnosticConsumer::IncludeInDiagnosticCounts | ( | ) | const [override, virtual] |
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 972 of file Diagnostic.cpp.
References clang::DiagnosticConsumer::IncludeInDiagnosticCounts().