|
clang 23.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 , AsIntN , AsFastIntN , AsDecimal32 , AsDecimal64 , AsDecimal128 , AsAllocate , AsMAllocate , AsWide , AsWideChar = AsLong } |
Public Member Functions | |
| LengthModifier () | |
| LengthModifier (const char *pos, Kind k) | |
| LengthModifier (const char *pos, Kind k, unsigned bitWidth, unsigned length) | |
| const char * | getStart () const |
| unsigned | getLength () const |
| Kind | getKind () const |
| void | setKind (Kind k) |
| unsigned | getBitWidth () const |
| StringRef | toString () const |
Represents the length modifier in a format string in scanf/printf.
Definition at line 67 of file FormatString.h.
Definition at line 69 of file FormatString.h.
|
inline |
Definition at line 95 of file FormatString.h.
References None, and clang::nullptr.
|
inline |
Definition at line 96 of file FormatString.h.
|
inline |
Definition at line 97 of file FormatString.h.
References length().
|
inline |
Definition at line 126 of file FormatString.h.
Referenced by clang::analyze_format_string::ArgType::makeIntNType().
|
inline |
Definition at line 123 of file FormatString.h.
Referenced by clang::analyze_format_string::ArgType::makeIntNType().
|
inline |
Definition at line 102 of file FormatString.h.
References AsChar, AsDecimal128, AsFastIntN, AsInt32, AsInt64, AsIntN, AsLongLong, and None.
Referenced by toString().
|
inline |
Definition at line 100 of file FormatString.h.
|
inline |
Definition at line 124 of file FormatString.h.
Referenced by clang::analyze_format_string::FormatSpecifier::getCorrectedLengthModifier().
| StringRef analyze_format_string::LengthModifier::toString | ( | ) | const |
Definition at line 959 of file FormatString.cpp.
References AsAllocate, AsChar, AsDecimal128, AsDecimal32, AsDecimal64, AsFastIntN, AsInt32, AsInt3264, AsInt64, AsIntMax, AsIntN, AsLong, AsLongDouble, AsLongLong, AsMAllocate, AsPtrDiff, AsQuad, AsShort, AsShortLong, AsSizeT, AsWide, getLength(), and None.