#include "clang/Basic/PartialDiagnostic.h"
|
| PartialDiagnostic (NullDiagnostic) |
| Create a null partial diagnostic, which cannot carry a payload, and only exists to be swapped with a real partial diagnostic. More...
|
|
| PartialDiagnostic (unsigned DiagID, StorageAllocator &Allocator) |
|
| PartialDiagnostic (const PartialDiagnostic &Other) |
|
| PartialDiagnostic (PartialDiagnostic &&Other) |
|
| PartialDiagnostic (const PartialDiagnostic &Other, Storage *DiagStorage) |
|
| PartialDiagnostic (const Diagnostic &Other, StorageAllocator &Allocator) |
|
PartialDiagnostic & | operator= (const PartialDiagnostic &Other) |
|
PartialDiagnostic & | operator= (PartialDiagnostic &&Other) |
|
| ~PartialDiagnostic () |
|
void | swap (PartialDiagnostic &PD) |
|
unsigned | getDiagID () const |
|
void | AddTaggedVal (intptr_t V, DiagnosticsEngine::ArgumentKind Kind) const |
|
void | AddString (StringRef V) const |
|
void | Emit (const DiagnosticBuilder &DB) const |
|
void | EmitToString (DiagnosticsEngine &Diags, SmallVectorImpl< char > &Buf) const |
|
void | Reset (unsigned DiagID=0) |
| Clear out this partial diagnostic, giving it a new diagnostic ID and removing all of its arguments, ranges, and fix-it hints. More...
|
|
bool | hasStorage () const |
|
StringRef | getStringArg (unsigned I) |
| Retrieve the string argument at the given index. More...
|
|
|
const PartialDiagnostic & | operator<< (const PartialDiagnostic &PD, unsigned I) |
|
const PartialDiagnostic & | operator<< (const PartialDiagnostic &PD, int I) |
|
const PartialDiagnostic & | operator<< (const PartialDiagnostic &PD, const char *S) |
|
const PartialDiagnostic & | operator<< (const PartialDiagnostic &PD, StringRef S) |
|
const PartialDiagnostic & | operator<< (const PartialDiagnostic &PD, const IdentifierInfo *II) |
|
template<typename T > |
std::enable_if< std::is_same< T, DeclContext >::value, const PartialDiagnostic & >::type | operator<< (const PartialDiagnostic &PD, T *DC) |
|
const PartialDiagnostic & | operator<< (const PartialDiagnostic &PD, SourceRange R) |
|
const PartialDiagnostic & | operator<< (const PartialDiagnostic &PD, const CharSourceRange &R) |
|
const PartialDiagnostic & | operator<< (const PartialDiagnostic &PD, const FixItHint &Hint) |
|
Definition at line 35 of file PartialDiagnostic.h.
◆ anonymous enum
◆ PartialDiagnostic() [1/6]
Create a null partial diagnostic, which cannot carry a payload, and only exists to be swapped with a real partial diagnostic.
Definition at line 189 of file PartialDiagnostic.h.
◆ PartialDiagnostic() [2/6]
clang::PartialDiagnostic::PartialDiagnostic |
( |
unsigned |
DiagID, |
|
|
StorageAllocator & |
Allocator |
|
) |
| |
|
inline |
◆ PartialDiagnostic() [3/6]
◆ PartialDiagnostic() [4/6]
◆ PartialDiagnostic() [5/6]
◆ PartialDiagnostic() [6/6]
◆ ~PartialDiagnostic()
clang::PartialDiagnostic::~PartialDiagnostic |
( |
| ) |
|
|
inline |
◆ AddString()
void clang::PartialDiagnostic::AddString |
( |
StringRef |
V | ) |
const |
|
inline |
◆ AddTaggedVal()
◆ Emit()
Definition at line 292 of file PartialDiagnostic.h.
References clang::DiagnosticBuilder::AddFixItHint(), clang::DiagnosticBuilder::AddSourceRange(), clang::DiagnosticBuilder::AddString(), clang::DiagnosticBuilder::AddTaggedVal(), clang::DiagnosticsEngine::ak_std_string, clang::PartialDiagnostic::Storage::DiagArgumentsKind, clang::PartialDiagnostic::Storage::DiagArgumentsStr, clang::PartialDiagnostic::Storage::DiagArgumentsVal, clang::PartialDiagnostic::Storage::DiagRanges, clang::PartialDiagnostic::Storage::FixItHints, and clang::PartialDiagnostic::Storage::NumDiagArgs.
Referenced by EmitToString(), and clang::operator<<().
◆ EmitToString()
◆ getDiagID()
unsigned clang::PartialDiagnostic::getDiagID |
( |
| ) |
const |
|
inline |
◆ getStringArg()
StringRef clang::PartialDiagnostic::getStringArg |
( |
unsigned |
I | ) |
|
|
inline |
◆ hasStorage()
bool clang::PartialDiagnostic::hasStorage |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ Reset()
void clang::PartialDiagnostic::Reset |
( |
unsigned |
DiagID = 0 | ) |
|
|
inline |
◆ swap()
◆ operator<< [1/9]
◆ operator<< [2/9]
◆ operator<< [3/9]
◆ operator<< [4/9]
◆ operator<< [5/9]
◆ operator<< [6/9]
◆ operator<< [7/9]
◆ operator<< [8/9]
◆ operator<< [9/9]
The documentation for this class was generated from the following file: