clang 20.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 1695 of file Diagnostic.h.
using clang::StoredDiagnostic::fixit_iterator = std::vector<FixItHint>::const_iterator |
Definition at line 1731 of file Diagnostic.h.
using clang::StoredDiagnostic::range_iterator = std::vector<CharSourceRange>::const_iterator |
Definition at line 1723 of file Diagnostic.h.
|
default |
StoredDiagnostic::StoredDiagnostic | ( | DiagnosticsEngine::Level | Level, |
const Diagnostic & | Info | ||
) |
Definition at line 1157 of file Diagnostic.cpp.
References clang::Diagnostic::FormatDiagnostic(), clang::Diagnostic::getFixItHints(), clang::Diagnostic::getLocation(), clang::Diagnostic::getRanges(), clang::Diagnostic::getSourceManager(), clang::Diagnostic::hasSourceManager(), clang::SourceLocation::isInvalid(), clang::SourceLocation::isValid(), and Loc.
StoredDiagnostic::StoredDiagnostic | ( | DiagnosticsEngine::Level | Level, |
unsigned | ID, | ||
StringRef | Message | ||
) |
Definition at line 1153 of file Diagnostic.cpp.
StoredDiagnostic::StoredDiagnostic | ( | DiagnosticsEngine::Level | Level, |
unsigned | ID, | ||
StringRef | Message, | ||
FullSourceLoc | Loc, | ||
ArrayRef< CharSourceRange > | Ranges, | ||
ArrayRef< FixItHint > | Fixits | ||
) |
Definition at line 1171 of file Diagnostic.cpp.
|
inline |
Definition at line 1733 of file Diagnostic.h.
Referenced by clang::DiagnosticsEngine::Report().
|
inline |
Definition at line 1734 of file Diagnostic.h.
Referenced by clang::DiagnosticsEngine::Report().
|
inline |
Definition at line 1735 of file Diagnostic.h.
Definition at line 1737 of file Diagnostic.h.
Referenced by makeStandaloneDiagnostic().
|
inline |
Definition at line 1716 of file Diagnostic.h.
Referenced by makeStandaloneDiagnostic(), and clang::DiagnosticsEngine::Report().
|
inline |
Definition at line 1717 of file Diagnostic.h.
Referenced by makeStandaloneDiagnostic(), and clang::DiagnosticsEngine::Report().
|
inline |
Definition at line 1718 of file Diagnostic.h.
References Loc.
Referenced by isNonDriverDiag(), makeStandaloneDiagnostic(), clang::operator<<(), and clang::DiagnosticsEngine::Report().
|
inline |
Definition at line 1719 of file Diagnostic.h.
Referenced by makeStandaloneDiagnostic(), clang::operator<<(), and clang::DiagnosticsEngine::Report().
|
inline |
Definition at line 1729 of file Diagnostic.h.
Referenced by makeStandaloneDiagnostic().
|
inlineexplicit |
Evaluates true when this object stores a diagnostic.
Definition at line 1714 of file Diagnostic.h.
|
inline |
Definition at line 1725 of file Diagnostic.h.
Referenced by clang::DiagnosticsEngine::Report().
|
inline |
Definition at line 1726 of file Diagnostic.h.
Referenced by clang::DiagnosticsEngine::Report().
|
inline |
Definition at line 1727 of file Diagnostic.h.
|
inline |
Definition at line 1721 of file Diagnostic.h.
References Loc.