clang
3.9.0
|
#include <TextDiagnosticBuffer.h>
Public Types | |
typedef std::vector< std::pair < SourceLocation, std::string > > | DiagList |
typedef DiagList::iterator | iterator |
typedef DiagList::const_iterator | const_iterator |
Public Member Functions | |
const_iterator | err_begin () const |
const_iterator | err_end () const |
const_iterator | warn_begin () const |
const_iterator | warn_end () const |
const_iterator | remark_begin () const |
const_iterator | remark_end () const |
const_iterator | note_begin () const |
const_iterator | note_end () const |
void | HandleDiagnostic (DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info) override |
HandleDiagnostic - Store the errors, warnings, and notes that are reported. More... | |
void | FlushDiagnostics (DiagnosticsEngine &Diags) const |
FlushDiagnostics - Flush the buffered diagnostics to an given diagnostic engine. More... | |
![]() | |
DiagnosticConsumer () | |
unsigned | getNumErrors () const |
unsigned | getNumWarnings () const |
virtual void | clear () |
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... | |
virtual bool | IncludeInDiagnosticCounts () const |
Indicates whether the diagnostics handled by this DiagnosticConsumer should be included in the number of diagnostics reported by DiagnosticsEngine. More... | |
Additional Inherited Members | |
![]() | |
unsigned | NumWarnings |
Number of warnings reported. More... | |
unsigned | NumErrors |
Number of errors reported. More... | |
Definition at line 25 of file TextDiagnosticBuffer.h.
typedef DiagList::const_iterator clang::TextDiagnosticBuffer::const_iterator |
Definition at line 29 of file TextDiagnosticBuffer.h.
typedef std::vector<std::pair<SourceLocation, std::string> > clang::TextDiagnosticBuffer::DiagList |
Definition at line 27 of file TextDiagnosticBuffer.h.
typedef DiagList::iterator clang::TextDiagnosticBuffer::iterator |
Definition at line 28 of file TextDiagnosticBuffer.h.
|
inline |
Definition at line 33 of file TextDiagnosticBuffer.h.
Referenced by CheckResults(), and FlushDiagnostics().
|
inline |
Definition at line 34 of file TextDiagnosticBuffer.h.
Referenced by CheckResults(), and FlushDiagnostics().
void TextDiagnosticBuffer::FlushDiagnostics | ( | DiagnosticsEngine & | Diags | ) | const |
FlushDiagnostics - Flush the buffered diagnostics to an given diagnostic engine.
Definition at line 48 of file TextDiagnosticBuffer.cpp.
References err_begin(), err_end(), clang::DiagnosticsEngine::Error, clang::for(), clang::DiagnosticsEngine::getCustomDiagID(), clang::DiagnosticsEngine::Note, note_begin(), note_end(), clang::DiagnosticsEngine::Remark, remark_begin(), remark_end(), clang::DiagnosticsEngine::Report(), warn_begin(), warn_end(), and clang::DiagnosticsEngine::Warning.
|
overridevirtual |
HandleDiagnostic - Store the errors, warnings, and notes that are reported.
Reimplemented from clang::DiagnosticConsumer.
Definition at line 22 of file TextDiagnosticBuffer.cpp.
References clang::DiagnosticsEngine::Error, clang::DiagnosticsEngine::Fatal, clang::Diagnostic::FormatDiagnostic(), clang::Diagnostic::getLocation(), clang::DiagnosticConsumer::HandleDiagnostic(), clang::DiagnosticsEngine::Note, clang::DiagnosticsEngine::Remark, and clang::DiagnosticsEngine::Warning.
|
inline |
Definition at line 42 of file TextDiagnosticBuffer.h.
Referenced by CheckResults(), and FlushDiagnostics().
|
inline |
Definition at line 43 of file TextDiagnosticBuffer.h.
Referenced by CheckResults(), and FlushDiagnostics().
|
inline |
Definition at line 39 of file TextDiagnosticBuffer.h.
Referenced by CheckResults(), and FlushDiagnostics().
|
inline |
Definition at line 40 of file TextDiagnosticBuffer.h.
Referenced by CheckResults(), and FlushDiagnostics().
|
inline |
Definition at line 36 of file TextDiagnosticBuffer.h.
Referenced by CheckResults(), and FlushDiagnostics().
|
inline |
Definition at line 37 of file TextDiagnosticBuffer.h.
Referenced by CheckResults(), and FlushDiagnostics().