clang API Documentation
Represents a diagnostic in a form that can be retained until its corresponding source manager is destroyed. More...
#include <Diagnostic.h>
Represents a diagnostic in a form that can be retained until its corresponding source manager is destroyed.
Definition at line 1242 of file Diagnostic.h.
typedef std::vector<FixItHint>::const_iterator clang::StoredDiagnostic::fixit_iterator |
Definition at line 1281 of file Diagnostic.h.
typedef std::vector<CharSourceRange>::const_iterator clang::StoredDiagnostic::range_iterator |
Definition at line 1271 of file Diagnostic.h.
Definition at line 913 of file Diagnostic.cpp.
StoredDiagnostic::StoredDiagnostic | ( | DiagnosticsEngine::Level | Level, |
const Diagnostic & | Info | ||
) |
Definition at line 919 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 915 of file Diagnostic.cpp.
StoredDiagnostic::StoredDiagnostic | ( | DiagnosticsEngine::Level | Level, |
unsigned | ID, | ||
StringRef | Message, | ||
FullSourceLoc | Loc, | ||
ArrayRef< CharSourceRange > | Ranges, | ||
ArrayRef< FixItHint > | Fixits | ||
) |
Definition at line 940 of file Diagnostic.cpp.
Definition at line 949 of file Diagnostic.cpp.
fixit_iterator clang::StoredDiagnostic::fixit_begin | ( | ) | const [inline] |
Definition at line 1282 of file Diagnostic.h.
Referenced by makeStandaloneDiagnostic(), and clang::DiagnosticsEngine::Report().
fixit_iterator clang::StoredDiagnostic::fixit_end | ( | ) | const [inline] |
Definition at line 1283 of file Diagnostic.h.
Referenced by makeStandaloneDiagnostic(), and clang::DiagnosticsEngine::Report().
unsigned clang::StoredDiagnostic::fixit_size | ( | ) | const [inline] |
Definition at line 1284 of file Diagnostic.h.
Referenced by clang::DiagnosticsEngine::Report().
ArrayRef<FixItHint> clang::StoredDiagnostic::getFixIts | ( | ) | const [inline] |
Definition at line 1286 of file Diagnostic.h.
Referenced by clang::DiagnosticRenderer::emitStoredDiagnostic().
unsigned clang::StoredDiagnostic::getID | ( | ) | const [inline] |
Definition at line 1264 of file Diagnostic.h.
Referenced by makeStandaloneDiagnostic(), clang::DiagnosticsEngine::Report(), and clang::arcmt::writeARCDiagsToPlist().
DiagnosticsEngine::Level clang::StoredDiagnostic::getLevel | ( | ) | const [inline] |
Definition at line 1265 of file Diagnostic.h.
Referenced by clang::DiagnosticRenderer::emitStoredDiagnostic(), makeStandaloneDiagnostic(), clang::DiagnosticsEngine::Report(), and clang::arcmt::writeARCDiagsToPlist().
const FullSourceLoc& clang::StoredDiagnostic::getLocation | ( | ) | const [inline] |
Definition at line 1266 of file Diagnostic.h.
Referenced by clang::DiagnosticRenderer::emitStoredDiagnostic(), isNonDriverDiag(), makeStandaloneDiagnostic(), clang::DiagnosticsEngine::Report(), and clang::arcmt::writeARCDiagsToPlist().
StringRef clang::StoredDiagnostic::getMessage | ( | ) | const [inline] |
Definition at line 1267 of file Diagnostic.h.
Referenced by clang::DiagnosticRenderer::emitStoredDiagnostic(), makeStandaloneDiagnostic(), clang::DiagnosticsEngine::Report(), and clang::arcmt::writeARCDiagsToPlist().
ArrayRef<CharSourceRange> clang::StoredDiagnostic::getRanges | ( | ) | const [inline] |
Definition at line 1276 of file Diagnostic.h.
Referenced by clang::DiagnosticRenderer::emitStoredDiagnostic().
LLVM_EXPLICIT clang::StoredDiagnostic::operator bool | ( | ) | const [inline] |
Evaluates true when this object stores a diagnostic.
Definition at line 1262 of file Diagnostic.h.
range_iterator clang::StoredDiagnostic::range_begin | ( | ) | const [inline] |
Definition at line 1272 of file Diagnostic.h.
Referenced by makeStandaloneDiagnostic(), clang::DiagnosticsEngine::Report(), and clang::arcmt::writeARCDiagsToPlist().
range_iterator clang::StoredDiagnostic::range_end | ( | ) | const [inline] |
Definition at line 1273 of file Diagnostic.h.
Referenced by makeStandaloneDiagnostic(), clang::DiagnosticsEngine::Report(), and clang::arcmt::writeARCDiagsToPlist().
unsigned clang::StoredDiagnostic::range_size | ( | ) | const [inline] |
Definition at line 1274 of file Diagnostic.h.
Referenced by clang::DiagnosticsEngine::Report().
void clang::StoredDiagnostic::setLocation | ( | FullSourceLoc | Loc | ) | [inline] |
Definition at line 1269 of file Diagnostic.h.