21 assert(DiagObj->getDiagnosticIDs()->isTrapDiag(DiagID));
26 getMessage(TR.Message);
27 TR.Category = getCategory();
37 Info.FormatDiagnostic(Storage);
40StringRef TrapReasonBuilder::getCategory() {
This file contains the declaration of TrapReasonBuilder and related classes.
TrapReasonBuilder(DiagnosticsEngine *DiagObj, unsigned DiagID, TrapReason &TR)
void Clear() const
Clear out the current diagnostic.
DiagnosticsEngine * getDiagnosticsEngine() const
friend class DiagnosticsEngine
unsigned getDiagID() const
A little helper class (which is basically a smart pointer that forwards info from DiagnosticsEngine a...
const IntrusiveRefCntPtr< DiagnosticIDs > & getDiagnosticIDs() const
Encodes a location in the source.
The JSON file list parser is used to communicate input to InstallAPI.