clang
10.0.0git
|
#include "clang/AST/FormatString.h"
Public Types | |
enum | Kind { InvalidSpecifier = 0, cArg, dArg, DArg, iArg, IntArgBeg = dArg, IntArgEnd = iArg, oArg, OArg, uArg, UArg, xArg, XArg, UIntArgBeg = oArg, UIntArgEnd = XArg, fArg, FArg, eArg, EArg, gArg, GArg, aArg, AArg, DoubleArgBeg = fArg, DoubleArgEnd = AArg, sArg, pArg, nArg, PercentArg, CArg, SArg, PArg, ZArg, ObjCObjArg, ObjCBeg = ObjCObjArg, ObjCEnd = ObjCObjArg, FreeBSDbArg, FreeBSDDArg, FreeBSDrArg, FreeBSDyArg, PrintErrno, PrintfConvBeg = ObjCObjArg, PrintfConvEnd = PrintErrno, ScanListArg, ScanfConvBeg = ScanListArg, ScanfConvEnd = ScanListArg } |
Public Member Functions | |
ConversionSpecifier (bool isPrintf=true) | |
ConversionSpecifier (bool isPrintf, const char *pos, Kind k) | |
const char * | getStart () const |
StringRef | getCharacters () const |
bool | consumesDataArgument () const |
Kind | getKind () const |
void | setKind (Kind k) |
unsigned | getLength () const |
void | setEndScanList (const char *pos) |
bool | isIntArg () const |
bool | isUIntArg () const |
bool | isAnyIntArg () const |
bool | isDoubleArg () const |
const char * | toString () const |
bool | isPrintfKind () const |
Optional< ConversionSpecifier > | getStandardSpecifier () const |
Protected Attributes | |
bool | IsPrintf |
const char * | Position |
const char * | EndScanList |
Kind | kind |
Definition at line 121 of file FormatString.h.
Definition at line 123 of file FormatString.h.
|
inline |
Definition at line 192 of file FormatString.h.
|
inline |
Definition at line 196 of file FormatString.h.
|
inline |
Definition at line 207 of file FormatString.h.
Referenced by clang::analyze_printf::PrintfSpecifier::getArgType(), and clang::analyze_scanf::ScanfSpecifier::getArgType().
|
inline |
Definition at line 203 of file FormatString.h.
|
inline |
Definition at line 221 of file FormatString.h.
Referenced by clang::analyze_scanf::ScanfSpecifier::getArgType(), and isArithmeticArgumentPromotion().
|
inline |
Definition at line 223 of file FormatString.h.
Optional< ConversionSpecifier > ConversionSpecifier::getStandardSpecifier | ( | ) | const |
Definition at line 673 of file FormatString.cpp.
|
inline |
Definition at line 199 of file FormatString.h.
|
inline |
Definition at line 231 of file FormatString.h.
|
inline |
Definition at line 232 of file FormatString.h.
References clang::analyze_format_string::OptionalFlag::toString().
|
inline |
Definition at line 228 of file FormatString.h.
|
inline |
Definition at line 238 of file FormatString.h.
Referenced by clang::analyze_printf::PrintfConversionSpecifier::classof(), and clang::analyze_scanf::ScanfConversionSpecifier::classof().
|
inline |
Definition at line 230 of file FormatString.h.
|
inline |
Definition at line 226 of file FormatString.h.
Referenced by ParseScanList().
|
inline |
Definition at line 222 of file FormatString.h.
Referenced by getStandardSpecifier().
const char * ConversionSpecifier::toString | ( | ) | const |
Definition at line 621 of file FormatString.cpp.
|
protected |
Definition at line 245 of file FormatString.h.
|
protected |
Definition at line 243 of file FormatString.h.
|
protected |
Definition at line 246 of file FormatString.h.
|
protected |
Definition at line 244 of file FormatString.h.