clang 22.0.0git
|
Helper class for stores the "trap reason" built by. More...
#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CodeGen/TrapReasonBuilder.h"
Public Member Functions | |
TrapReasonBuilder (DiagnosticsEngine *DiagObj, unsigned DiagID, TrapReason &TR) | |
~TrapReasonBuilder () | |
TrapReasonBuilder & | operator= (const TrapReasonBuilder &)=delete |
TrapReasonBuilder & | operator= (const TrapReasonBuilder &&)=delete |
TrapReasonBuilder (const TrapReasonBuilder &)=delete | |
TrapReasonBuilder (const TrapReasonBuilder &&)=delete | |
![]() | |
DiagnosticBuilder (const DiagnosticBuilder &D) | |
Copy constructor. | |
template<typename T > | |
const DiagnosticBuilder & | operator<< (const T &V) const |
template<typename T , typename = std::enable_if_t<!std::is_lvalue_reference<T>::value>> | |
const DiagnosticBuilder & | operator<< (T &&V) const |
DiagnosticBuilder & | operator= (const DiagnosticBuilder &)=delete |
~DiagnosticBuilder () | |
Emits the diagnostic. | |
const DiagnosticBuilder & | setForceEmit () const |
Forces the diagnostic to be emitted. | |
void | addFlagValue (StringRef V) const |
![]() | |
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 | |
![]() | |
using | DiagStorageAllocator = clang::DiagStorageAllocator |
![]() | |
DiagnosticBuilder (DiagnosticsEngine *DiagObj, SourceLocation DiagLoc, unsigned DiagID) | |
DiagnosticsEngine * | getDiagnosticsEngine () const |
unsigned | getDiagID () const |
void | Clear () const |
Clear out the current diagnostic. | |
bool | isActive () const |
Determine whether this diagnostic is still active. | |
bool | Emit () |
Force the diagnostic builder to emit the diagnostic now. | |
![]() | |
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 () | |
![]() | |
DiagnosticStorage * | DiagStorage = nullptr |
DiagStorageAllocator * | Allocator = nullptr |
Allocator used to allocate storage for this diagnostic. | |
Helper class for stores the "trap reason" built by.
Definition at line 85 of file TrapReasonBuilder.h.
clang::CodeGen::TrapReasonBuilder::TrapReasonBuilder | ( | DiagnosticsEngine * | DiagObj, |
unsigned | DiagID, | ||
TrapReason & | TR | ||
) |
Definition at line 18 of file TrapReasonBuilder.cpp.
References clang::DiagnosticsEngine::getDiagnosticIDs().
clang::CodeGen::TrapReasonBuilder::~TrapReasonBuilder | ( | ) |
Definition at line 24 of file TrapReasonBuilder.cpp.
References clang::DiagnosticBuilder::Clear().
|
delete |
|
delete |
|
delete |
|
delete |