clang 20.0.0git
|
#include "clang/Basic/PartialDiagnostic.h"
Classes | |
struct | NullDiagnostic |
Public Member Functions | |
PartialDiagnostic (NullDiagnostic) | |
Create a null partial diagnostic, which cannot carry a payload, and only exists to be swapped with a real partial diagnostic. | |
PartialDiagnostic (unsigned DiagID, DiagStorageAllocator &Allocator_) | |
PartialDiagnostic (const PartialDiagnostic &Other) | |
template<typename T > | |
const PartialDiagnostic & | operator<< (const T &V) const |
template<typename T , typename = std::enable_if_t<!std::is_lvalue_reference<T>::value>> | |
const PartialDiagnostic & | operator<< (T &&V) const |
PartialDiagnostic (PartialDiagnostic &&Other) | |
PartialDiagnostic (const PartialDiagnostic &Other, DiagnosticStorage *DiagStorage_) | |
PartialDiagnostic (const Diagnostic &Other, DiagStorageAllocator &Allocator_) | |
PartialDiagnostic & | operator= (const PartialDiagnostic &Other) |
PartialDiagnostic & | operator= (PartialDiagnostic &&Other) |
void | swap (PartialDiagnostic &PD) |
unsigned | getDiagID () const |
void | setDiagID (unsigned ID) |
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. | |
bool | hasStorage () const |
StringRef | getStringArg (unsigned I) |
Retrieve the string argument at the given index. | |
Public Member Functions inherited from clang::StreamingDiagnostic | |
DiagnosticStorage * | getStorage () const |
Retrieve storage for this particular diagnostic. | |
void | freeStorage () |
void | freeStorageSlow () |
void | AddTaggedVal (uint64_t V, DiagnosticsEngine::ArgumentKind Kind) const |
void | AddString (StringRef V) const |
void | AddSourceRange (const CharSourceRange &R) const |
void | AddFixItHint (const FixItHint &Hint) const |
operator bool () const | |
Conversion of StreamingDiagnostic to bool always returns true . | |
Additional Inherited Members | |
Public Types inherited from clang::StreamingDiagnostic | |
using | DiagStorageAllocator = clang::DiagStorageAllocator |
Protected Member Functions inherited from clang::StreamingDiagnostic | |
StreamingDiagnostic ()=default | |
StreamingDiagnostic (DiagStorageAllocator &Alloc) | |
Construct with a storage allocator which will manage the storage. | |
StreamingDiagnostic (const StreamingDiagnostic &Diag)=default | |
StreamingDiagnostic (StreamingDiagnostic &&Diag)=default | |
~StreamingDiagnostic () | |
Protected Attributes inherited from clang::StreamingDiagnostic | |
DiagnosticStorage * | DiagStorage = nullptr |
DiagStorageAllocator * | Allocator = nullptr |
Allocator used to allocate storage for this diagnostic. | |
Definition at line 31 of file PartialDiagnostic.h.
|
inline |
Create a null partial diagnostic, which cannot carry a payload, and only exists to be swapped with a real partial diagnostic.
Definition at line 44 of file PartialDiagnostic.h.
|
inline |
Definition at line 46 of file PartialDiagnostic.h.
|
inline |
Definition at line 49 of file PartialDiagnostic.h.
References clang::StreamingDiagnostic::Allocator, clang::StreamingDiagnostic::DiagStorage, clang::StreamingDiagnostic::getStorage(), and clang::Other.
|
inline |
Definition at line 75 of file PartialDiagnostic.h.
References clang::StreamingDiagnostic::Allocator, clang::StreamingDiagnostic::DiagStorage, and clang::Other.
|
inline |
Definition at line 81 of file PartialDiagnostic.h.
References clang::StreamingDiagnostic::Allocator, clang::StreamingDiagnostic::DiagStorage, and clang::Other.
|
inline |
Definition at line 90 of file PartialDiagnostic.h.
References clang::StreamingDiagnostic::AddFixItHint(), clang::StreamingDiagnostic::AddSourceRange(), clang::StreamingDiagnostic::AddString(), clang::StreamingDiagnostic::AddTaggedVal(), clang::DiagnosticsEngine::ak_std_string, clang::StreamingDiagnostic::Allocator, and clang::Other.
|
inline |
Definition at line 144 of file PartialDiagnostic.h.
References clang::StreamingDiagnostic::AddFixItHint(), clang::StreamingDiagnostic::AddSourceRange(), clang::StreamingDiagnostic::AddString(), clang::StreamingDiagnostic::AddTaggedVal(), clang::DiagnosticsEngine::ak_std_string, clang::DiagnosticStorage::DiagArgumentsKind, clang::DiagnosticStorage::DiagArgumentsStr, clang::DiagnosticStorage::DiagArgumentsVal, clang::DiagnosticStorage::DiagRanges, clang::StreamingDiagnostic::DiagStorage, clang::DiagnosticStorage::FixItHints, clang::DiagnosticStorage::NumDiagArgs, and Range.
Referenced by EmitToString(), and clang::operator<<().
|
inline |
Definition at line 167 of file PartialDiagnostic.h.
References clang::DiagnosticBuilder::Clear(), Emit(), clang::Diagnostic::FormatDiagnostic(), getDiagID(), and clang::DiagnosticsEngine::Report().
Referenced by calculateConstraintSatisfaction().
|
inline |
Definition at line 141 of file PartialDiagnostic.h.
Referenced by clang::Sema::areMultiversionVariantFunctionsCompatible(), clang::CheckEquivalentExceptionSpecImpl(), clang::Sema::CheckExceptionSpecSubset(), clang::SemaBase::Diag(), clang::Sema::diagnoseTypo(), EmitToString(), clang::sema::AccessedEntity::isQuiet(), and clang::Sema::targetDiag().
|
inline |
Retrieve the string argument at the given index.
Definition at line 185 of file PartialDiagnostic.h.
References clang::DiagnosticsEngine::ak_std_string, clang::DiagnosticStorage::DiagArgumentsKind, clang::DiagnosticStorage::DiagArgumentsStr, and clang::StreamingDiagnostic::DiagStorage.
|
inline |
Definition at line 182 of file PartialDiagnostic.h.
References clang::StreamingDiagnostic::DiagStorage.
|
inline |
Definition at line 58 of file PartialDiagnostic.h.
References V.
|
inline |
Definition at line 69 of file PartialDiagnostic.h.
References V.
|
inline |
Definition at line 110 of file PartialDiagnostic.h.
References clang::StreamingDiagnostic::DiagStorage, clang::StreamingDiagnostic::freeStorage(), clang::StreamingDiagnostic::getStorage(), and clang::Other.
|
inline |
Definition at line 124 of file PartialDiagnostic.h.
References clang::StreamingDiagnostic::Allocator, clang::StreamingDiagnostic::DiagStorage, clang::StreamingDiagnostic::freeStorage(), and clang::Other.
|
inline |
Clear out this partial diagnostic, giving it a new diagnostic ID and removing all of its arguments, ranges, and fix-it hints.
Definition at line 177 of file PartialDiagnostic.h.
References clang::StreamingDiagnostic::freeStorage().
Referenced by clang::sema::AccessedEntity::setDiag().
|
inline |
Definition at line 142 of file PartialDiagnostic.h.
References ID.
|
inline |
Definition at line 135 of file PartialDiagnostic.h.
References clang::StreamingDiagnostic::Allocator, and clang::StreamingDiagnostic::DiagStorage.