clang API Documentation
#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 |
void | FlushDiagnostics (DiagnosticsEngine &Diags) const |
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.
const_iterator clang::TextDiagnosticBuffer::err_begin | ( | ) | const [inline] |
Definition at line 33 of file TextDiagnosticBuffer.h.
Referenced by CheckResults(), and FlushDiagnostics().
const_iterator clang::TextDiagnosticBuffer::err_end | ( | ) | const [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::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.
void TextDiagnosticBuffer::HandleDiagnostic | ( | DiagnosticsEngine::Level | Level, |
const Diagnostic & | Info | ||
) | [override, virtual] |
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::DiagnosticsEngine::Note, clang::DiagnosticsEngine::Remark, and clang::DiagnosticsEngine::Warning.
const_iterator clang::TextDiagnosticBuffer::note_begin | ( | ) | const [inline] |
Definition at line 42 of file TextDiagnosticBuffer.h.
Referenced by CheckResults(), and FlushDiagnostics().
const_iterator clang::TextDiagnosticBuffer::note_end | ( | ) | const [inline] |
Definition at line 43 of file TextDiagnosticBuffer.h.
Referenced by CheckResults(), and FlushDiagnostics().
const_iterator clang::TextDiagnosticBuffer::remark_begin | ( | ) | const [inline] |
Definition at line 39 of file TextDiagnosticBuffer.h.
Referenced by CheckResults(), and FlushDiagnostics().
const_iterator clang::TextDiagnosticBuffer::remark_end | ( | ) | const [inline] |
Definition at line 40 of file TextDiagnosticBuffer.h.
Referenced by CheckResults(), and FlushDiagnostics().
const_iterator clang::TextDiagnosticBuffer::warn_begin | ( | ) | const [inline] |
Definition at line 36 of file TextDiagnosticBuffer.h.
Referenced by CheckResults(), and FlushDiagnostics().
const_iterator clang::TextDiagnosticBuffer::warn_end | ( | ) | const [inline] |
Definition at line 37 of file TextDiagnosticBuffer.h.
Referenced by CheckResults(), and FlushDiagnostics().