clang API Documentation
Represents a diagnostic in a form that can be retained until its corresponding source manager is destroyed. More...
#include <Diagnostic.h>
Public Types | |
| typedef std::vector < CharSourceRange > ::const_iterator | range_iterator |
| typedef std::vector< FixItHint > ::const_iterator | fixit_iterator |
Public Member Functions | |
| StoredDiagnostic () | |
| StoredDiagnostic (DiagnosticsEngine::Level Level, const Diagnostic &Info) | |
| StoredDiagnostic (DiagnosticsEngine::Level Level, unsigned ID, StringRef Message) | |
| StoredDiagnostic (DiagnosticsEngine::Level Level, unsigned ID, StringRef Message, FullSourceLoc Loc, ArrayRef< CharSourceRange > Ranges, ArrayRef< FixItHint > Fixits) | |
| ~StoredDiagnostic () | |
| operator bool () const | |
| Evaluates true when this object stores a diagnostic. | |
| unsigned | getID () const |
| DiagnosticsEngine::Level | getLevel () const |
| const FullSourceLoc & | getLocation () const |
| StringRef | getMessage () const |
| void | setLocation (FullSourceLoc Loc) |
| range_iterator | range_begin () const |
| range_iterator | range_end () const |
| unsigned | range_size () const |
| ArrayRef< CharSourceRange > | getRanges () const |
| fixit_iterator | fixit_begin () const |
| fixit_iterator | fixit_end () const |
| unsigned | fixit_size () const |
| ArrayRef< FixItHint > | getFixIts () const |
Represents a diagnostic in a form that can be retained until its corresponding source manager is destroyed.
Definition at line 1094 of file Diagnostic.h.
| typedef std::vector<FixItHint>::const_iterator clang::StoredDiagnostic::fixit_iterator |
Definition at line 1133 of file Diagnostic.h.
| typedef std::vector<CharSourceRange>::const_iterator clang::StoredDiagnostic::range_iterator |
Definition at line 1123 of file Diagnostic.h.
| StoredDiagnostic::StoredDiagnostic | ( | ) |
Definition at line 819 of file Diagnostic.cpp.
| StoredDiagnostic::StoredDiagnostic | ( | DiagnosticsEngine::Level | Level, |
| const Diagnostic & | Info | ||
| ) |
Definition at line 825 of file Diagnostic.cpp.
References clang::Diagnostic::FormatDiagnostic(), clang::Diagnostic::getFixItHint(), clang::Diagnostic::getLocation(), clang::Diagnostic::getNumFixItHints(), clang::Diagnostic::getNumRanges(), clang::Diagnostic::getRange(), clang::Diagnostic::getSourceManager(), clang::Diagnostic::hasSourceManager(), clang::SourceLocation::isInvalid(), and clang::SourceLocation::isValid().
| StoredDiagnostic::StoredDiagnostic | ( | DiagnosticsEngine::Level | Level, |
| unsigned | ID, | ||
| StringRef | Message | ||
| ) |
Definition at line 821 of file Diagnostic.cpp.
| StoredDiagnostic::StoredDiagnostic | ( | DiagnosticsEngine::Level | Level, |
| unsigned | ID, | ||
| StringRef | Message, | ||
| FullSourceLoc | Loc, | ||
| ArrayRef< CharSourceRange > | Ranges, | ||
| ArrayRef< FixItHint > | Fixits | ||
| ) |
Definition at line 846 of file Diagnostic.cpp.
| StoredDiagnostic::~StoredDiagnostic | ( | ) |
Definition at line 856 of file Diagnostic.cpp.
| fixit_iterator clang::StoredDiagnostic::fixit_begin | ( | ) | const [inline] |
Definition at line 1134 of file Diagnostic.h.
Referenced by clang::DiagnosticsEngine::Report().
| fixit_iterator clang::StoredDiagnostic::fixit_end | ( | ) | const [inline] |
Definition at line 1135 of file Diagnostic.h.
Referenced by clang::DiagnosticsEngine::Report().
| unsigned clang::StoredDiagnostic::fixit_size | ( | ) | const [inline] |
Definition at line 1136 of file Diagnostic.h.
| ArrayRef<FixItHint> clang::StoredDiagnostic::getFixIts | ( | ) | const [inline] |
Definition at line 1138 of file Diagnostic.h.
Referenced by clang::DiagnosticRenderer::emitStoredDiagnostic().
| unsigned clang::StoredDiagnostic::getID | ( | ) | const [inline] |
Definition at line 1116 of file Diagnostic.h.
Referenced by clang::DiagnosticsEngine::Report(), and clang::arcmt::writeARCDiagsToPlist().
| DiagnosticsEngine::Level clang::StoredDiagnostic::getLevel | ( | ) | const [inline] |
Definition at line 1117 of file Diagnostic.h.
Referenced by clang::DiagnosticRenderer::emitStoredDiagnostic(), clang::DiagnosticsEngine::Report(), and clang::arcmt::writeARCDiagsToPlist().
| const FullSourceLoc& clang::StoredDiagnostic::getLocation | ( | ) | const [inline] |
Definition at line 1118 of file Diagnostic.h.
Referenced by clang::DiagnosticRenderer::emitStoredDiagnostic(), clang::DiagnosticsEngine::Report(), and clang::arcmt::writeARCDiagsToPlist().
| StringRef clang::StoredDiagnostic::getMessage | ( | ) | const [inline] |
Definition at line 1119 of file Diagnostic.h.
Referenced by clang::DiagnosticRenderer::emitStoredDiagnostic(), clang::DiagnosticsEngine::Report(), and clang::arcmt::writeARCDiagsToPlist().
| ArrayRef<CharSourceRange> clang::StoredDiagnostic::getRanges | ( | ) | const [inline] |
Definition at line 1128 of file Diagnostic.h.
Referenced by clang::DiagnosticRenderer::emitStoredDiagnostic().
| clang::StoredDiagnostic::operator bool | ( | ) | const [inline] |
Evaluates true when this object stores a diagnostic.
Definition at line 1114 of file Diagnostic.h.
| range_iterator clang::StoredDiagnostic::range_begin | ( | ) | const [inline] |
Definition at line 1124 of file Diagnostic.h.
Referenced by clang::DiagnosticsEngine::Report(), and clang::arcmt::writeARCDiagsToPlist().
| range_iterator clang::StoredDiagnostic::range_end | ( | ) | const [inline] |
Definition at line 1125 of file Diagnostic.h.
Referenced by clang::DiagnosticsEngine::Report(), and clang::arcmt::writeARCDiagsToPlist().
| unsigned clang::StoredDiagnostic::range_size | ( | ) | const [inline] |
Definition at line 1126 of file Diagnostic.h.
Referenced by clang::DiagnosticsEngine::Report().
| void clang::StoredDiagnostic::setLocation | ( | FullSourceLoc | Loc | ) | [inline] |
Definition at line 1121 of file Diagnostic.h.