clang API Documentation
#include <PartialDiagnostic.h>

Public Types | |
| enum | { MaxArguments = DiagnosticsEngine::MaxArguments } |
Public Member Functions | |
| PartialDiagnosticStorage () | |
Public Attributes | |
| unsigned char | NumDiagArgs |
| NumDiagArgs - This contains the number of entries in Arguments. | |
| unsigned char | NumDiagRanges |
| NumDiagRanges - This is the number of ranges in the DiagRanges array. | |
| unsigned char | DiagArgumentsKind [MaxArguments] |
| intptr_t | DiagArgumentsVal [MaxArguments] |
| std::string | DiagArgumentsStr [MaxArguments] |
| The values for the various substitution positions that have string arguments. | |
| CharSourceRange | DiagRanges [10] |
| SmallVector< FixItHint, 6 > | FixItHints |
Definition at line 26 of file PartialDiagnostic.h.
| anonymous enum |
| MaxArguments |
MaxArguments - The maximum number of arguments we can hold. We currently only support up to 10 arguments (%0-%9). A single diagnostic with more than that almost certainly has to be simplified anyway. |
Definition at line 29 of file PartialDiagnostic.h.
| clang::PartialDiagnosticStorage::PartialDiagnosticStorage | ( | ) | [inline] |
Definition at line 27 of file PartialDiagnostic.h.
| unsigned char clang::PartialDiagnosticStorage::DiagArgumentsKind[MaxArguments] |
DiagArgumentsKind - This is an array of ArgumentKind::ArgumentKind enum values, with one for each argument. This specifies whether the argument is in DiagArgumentsStr or in DiagArguments.
Definition at line 46 of file PartialDiagnostic.h.
Referenced by clang::PartialDiagnostic::AddString(), clang::PartialDiagnostic::AddTaggedVal(), and clang::PartialDiagnostic::Emit().
| std::string clang::PartialDiagnosticStorage::DiagArgumentsStr[MaxArguments] |
The values for the various substitution positions that have string arguments.
Definition at line 56 of file PartialDiagnostic.h.
Referenced by clang::PartialDiagnostic::AddString(), and clang::PartialDiagnostic::Emit().
| intptr_t clang::PartialDiagnosticStorage::DiagArgumentsVal[MaxArguments] |
DiagArgumentsVal - The values for the various substitution positions. This is used when the argument is not an std::string. The specific value is mangled into an intptr_t and the interpretation depends on exactly what sort of argument kind it is.
Definition at line 52 of file PartialDiagnostic.h.
Referenced by clang::PartialDiagnostic::AddTaggedVal(), and clang::PartialDiagnostic::Emit().
DiagRanges - The list of ranges added to this diagnostic. It currently only support 10 ranges, could easily be extended if needed.
Definition at line 60 of file PartialDiagnostic.h.
Referenced by clang::PartialDiagnostic::Emit().
| SmallVector<FixItHint, 6> clang::PartialDiagnosticStorage::FixItHints |
FixItHints - If valid, provides a hint with some code to insert, remove, or modify at a particular position.
Definition at line 64 of file PartialDiagnostic.h.
Referenced by clang::PartialDiagnosticStorageAllocator::Allocate(), and clang::PartialDiagnostic::Emit().
| unsigned char clang::PartialDiagnosticStorage::NumDiagArgs |
NumDiagArgs - This contains the number of entries in Arguments.
Definition at line 38 of file PartialDiagnostic.h.
Referenced by clang::PartialDiagnostic::AddString(), clang::PartialDiagnostic::AddTaggedVal(), clang::PartialDiagnosticStorageAllocator::Allocate(), and clang::PartialDiagnostic::Emit().
| unsigned char clang::PartialDiagnosticStorage::NumDiagRanges |
NumDiagRanges - This is the number of ranges in the DiagRanges array.
Definition at line 41 of file PartialDiagnostic.h.
Referenced by clang::PartialDiagnosticStorageAllocator::Allocate(), and clang::PartialDiagnostic::Emit().