clang API Documentation

Public Member Functions
clang::ForwardingDiagnosticConsumer Class Reference

Diagnostic consumer that forwards diagnostics along to an existing, already-initialized diagnostic consumer. More...

#include <Diagnostic.h>

Inheritance diagram for clang::ForwardingDiagnosticConsumer:
Inheritance graph
[legend]
Collaboration diagram for clang::ForwardingDiagnosticConsumer:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

Diagnostic consumer that forwards diagnostics along to an existing, already-initialized diagnostic consumer.

Definition at line 1360 of file Diagnostic.h.


Constructor & Destructor Documentation

Definition at line 1364 of file Diagnostic.h.

Definition at line 959 of file Diagnostic.cpp.


Member Function Documentation

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().

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().


The documentation for this class was generated from the following files: