clang API Documentation
#include <ChainedDiagnosticConsumer.h>


Public Member Functions | |
| ChainedDiagnosticConsumer (DiagnosticConsumer *_Primary, DiagnosticConsumer *_Secondary) | |
| virtual void | BeginSourceFile (const LangOptions &LO, const Preprocessor *PP) |
| virtual void | EndSourceFile () |
| virtual void | finish () |
| Callback to inform the diagnostic client that processing of all source files has ended. | |
| virtual bool | IncludeInDiagnosticCounts () const |
| virtual void | HandleDiagnostic (DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info) |
| DiagnosticConsumer * | clone (DiagnosticsEngine &Diags) const |
| Clone the diagnostic consumer, producing an equivalent consumer that can be used in a different context. | |
ChainedDiagnosticConsumer - Chain two diagnostic clients so that diagnostics go to the first client and then the second. The first diagnostic client should be the "primary" client, and will be used for computing whether the diagnostics should be included in counts.
Definition at line 23 of file ChainedDiagnosticConsumer.h.
| clang::ChainedDiagnosticConsumer::ChainedDiagnosticConsumer | ( | DiagnosticConsumer * | _Primary, |
| DiagnosticConsumer * | _Secondary | ||
| ) | [inline] |
Definition at line 29 of file ChainedDiagnosticConsumer.h.
Referenced by clone().
| virtual void clang::ChainedDiagnosticConsumer::BeginSourceFile | ( | const LangOptions & | LangOpts, |
| const Preprocessor * | PP | ||
| ) | [inline, virtual] |
BeginSourceFile - Callback to inform the diagnostic client that processing of a source file is beginning.
Note that diagnostics may be emitted outside the processing of a source file, for example during the parsing of command line options. However, diagnostics with source range information are required to only be emitted in between BeginSourceFile() and EndSourceFile().
Reimplemented from clang::DiagnosticConsumer.
Definition at line 35 of file ChainedDiagnosticConsumer.h.
| DiagnosticConsumer* clang::ChainedDiagnosticConsumer::clone | ( | DiagnosticsEngine & | Diags | ) | const [inline, virtual] |
Clone the diagnostic consumer, producing an equivalent consumer that can be used in a different context.
Implements clang::DiagnosticConsumer.
Definition at line 64 of file ChainedDiagnosticConsumer.h.
References ChainedDiagnosticConsumer().
| virtual void clang::ChainedDiagnosticConsumer::EndSourceFile | ( | ) | [inline, virtual] |
EndSourceFile - Callback to inform the diagnostic client that processing of a source file has ended. The diagnostic client should assume that any objects made available via
Reimplemented from clang::DiagnosticConsumer.
Definition at line 41 of file ChainedDiagnosticConsumer.h.
| virtual void clang::ChainedDiagnosticConsumer::finish | ( | ) | [inline, virtual] |
Callback to inform the diagnostic client that processing of all source files has ended.
Reimplemented from clang::DiagnosticConsumer.
Definition at line 46 of file ChainedDiagnosticConsumer.h.
| virtual void clang::ChainedDiagnosticConsumer::HandleDiagnostic | ( | DiagnosticsEngine::Level | DiagLevel, |
| const Diagnostic & | Info | ||
| ) | [inline, virtual] |
HandleDiagnostic - Handle this diagnostic, reporting it to the user or capturing it to a log as needed.
Default implementation just keeps track of the total number of warnings and errors.
Reimplemented from clang::DiagnosticConsumer.
Definition at line 55 of file ChainedDiagnosticConsumer.h.
| virtual bool clang::ChainedDiagnosticConsumer::IncludeInDiagnosticCounts | ( | ) | const [inline, virtual] |
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 51 of file ChainedDiagnosticConsumer.h.