clang
15.0.0git
|
Represents the length modifier in a format string in scanf/printf. More...
#include "clang/AST/FormatString.h"
Public Types | |
enum | Kind { None, AsChar, AsShort, AsShortLong, AsLong, AsLongLong, AsQuad, AsIntMax, AsSizeT, AsPtrDiff, AsInt32, AsInt3264, AsInt64, AsLongDouble, AsAllocate, AsMAllocate, AsWide, AsWideChar = AsLong } |
Public Member Functions | |
LengthModifier () | |
LengthModifier (const char *pos, Kind k) | |
const char * | getStart () const |
unsigned | getLength () const |
Kind | getKind () const |
void | setKind (Kind k) |
const char * | toString () const |
Represents the length modifier in a format string in scanf/printf.
Definition at line 64 of file FormatString.h.
Enumerator | |
---|---|
None | |
AsChar | |
AsShort | |
AsShortLong | |
AsLong | |
AsLongLong | |
AsQuad | |
AsIntMax | |
AsSizeT | |
AsPtrDiff | |
AsInt32 | |
AsInt3264 | |
AsInt64 | |
AsLongDouble | |
AsAllocate | |
AsMAllocate | |
AsWide | |
AsWideChar |
Definition at line 66 of file FormatString.h.
|
inline |
Definition at line 87 of file FormatString.h.
|
inline |
Definition at line 89 of file FormatString.h.
|
inline |
Definition at line 111 of file FormatString.h.
Referenced by clang::analyze_format_string::FormatSpecifier::getCorrectedLengthModifier(), clang::analyze_format_string::FormatSpecifier::hasStandardLengthConversionCombination(), clang::analyze_format_string::FormatSpecifier::hasStandardLengthModifier(), and clang::analyze_format_string::FormatSpecifier::hasValidLengthModifier().
|
inline |
Definition at line 96 of file FormatString.h.
References AsChar, AsInt32, AsInt64, AsLongLong, and None.
|
inline |
Definition at line 92 of file FormatString.h.
|
inline |
Definition at line 112 of file FormatString.h.
Referenced by clang::analyze_format_string::FormatSpecifier::getCorrectedLengthModifier(), and clang::analyze_format_string::FormatSpecifier::namedTypeToLengthModifier().
const char * analyze_format_string::LengthModifier::toString | ( | ) | const |
Definition at line 575 of file FormatString.cpp.