|
clang 24.0.0git
|
Represents a diagnostic in a form that can be retained until its corresponding source manager is destroyed. More...
#include "clang/Basic/Diagnostic.h"
Public Types | |
| using | range_iterator = std::vector<CharSourceRange>::const_iterator |
| using | fixit_iterator = std::vector<FixItHint>::const_iterator |
Public Member Functions | |
| StoredDiagnostic ()=default | |
| 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) | |
| 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 1751 of file Diagnostic.h.
| using clang::StoredDiagnostic::fixit_iterator = std::vector<FixItHint>::const_iterator |
Definition at line 1787 of file Diagnostic.h.
| using clang::StoredDiagnostic::range_iterator = std::vector<CharSourceRange>::const_iterator |
Definition at line 1779 of file Diagnostic.h.
|
default |
| StoredDiagnostic::StoredDiagnostic | ( | DiagnosticsEngine::Level | Level, |
| const Diagnostic & | Info ) |
Definition at line 1447 of file Diagnostic.cpp.
References clang::Diagnostic::FormatDiagnostic(), clang::Diagnostic::getFixItHints(), getID(), clang::Diagnostic::getLocation(), clang::Diagnostic::getRanges(), 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 1443 of file Diagnostic.cpp.
| StoredDiagnostic::StoredDiagnostic | ( | DiagnosticsEngine::Level | Level, |
| unsigned | ID, | ||
| StringRef | Message, | ||
| FullSourceLoc | Loc, | ||
| ArrayRef< CharSourceRange > | Ranges, | ||
| ArrayRef< FixItHint > | Fixits ) |
Definition at line 1462 of file Diagnostic.cpp.
|
inline |
Definition at line 1789 of file Diagnostic.h.
Referenced by clang::DiagnosticsEngine::Report().
|
inline |
Definition at line 1790 of file Diagnostic.h.
Referenced by clang::DiagnosticsEngine::Report().
|
inline |
Definition at line 1791 of file Diagnostic.h.
Definition at line 1793 of file Diagnostic.h.
Referenced by clang::StandaloneDiagnostic::StandaloneDiagnostic().
|
inline |
Definition at line 1772 of file Diagnostic.h.
Referenced by clang::DiagnosticsEngine::Report(), and StoredDiagnostic().
|
inline |
Definition at line 1773 of file Diagnostic.h.
Referenced by clang::DiagnosticsEngine::Report().
|
inline |
Definition at line 1774 of file Diagnostic.h.
Referenced by isNonDriverDiag(), clang::operator<<(), clang::DiagnosticsEngine::Report(), and clang::StandaloneDiagnostic::StandaloneDiagnostic().
|
inline |
Definition at line 1775 of file Diagnostic.h.
Referenced by clang::operator<<(), and clang::DiagnosticsEngine::Report().
|
inline |
Definition at line 1785 of file Diagnostic.h.
Referenced by clang::StandaloneDiagnostic::StandaloneDiagnostic().
|
inlineexplicit |
Evaluates true when this object stores a diagnostic.
Definition at line 1770 of file Diagnostic.h.
|
inline |
Definition at line 1781 of file Diagnostic.h.
Referenced by clang::DiagnosticsEngine::Report().
|
inline |
Definition at line 1782 of file Diagnostic.h.
Referenced by clang::DiagnosticsEngine::Report().
|
inline |
Definition at line 1783 of file Diagnostic.h.
|
inline |
Definition at line 1777 of file Diagnostic.h.