clang API Documentation
Represents the length modifier in a format string in scanf/printf. More...
#include <FormatString.h>
Public Types | |
| enum | Kind { None, AsChar, AsShort, 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.
| None | |
| AsChar | |
| AsShort | |
| AsLong | |
| AsLongLong | |
| AsQuad | |
| AsIntMax | |
| AsSizeT | |
| AsPtrDiff | |
| AsInt32 | |
| AsInt3264 | |
| AsInt64 | |
| AsLongDouble | |
| AsAllocate | |
| AsMAllocate | |
| AsWide | |
| AsWideChar |
Definition at line 66 of file FormatString.h.
Definition at line 86 of file FormatString.h.
| clang::analyze_format_string::LengthModifier::LengthModifier | ( | const char * | pos, |
| Kind | k | ||
| ) | [inline] |
Definition at line 88 of file FormatString.h.
| Kind clang::analyze_format_string::LengthModifier::getKind | ( | ) | const [inline] |
Definition at line 110 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().
| unsigned clang::analyze_format_string::LengthModifier::getLength | ( | ) | const [inline] |
Definition at line 95 of file FormatString.h.
References AsChar, AsInt32, AsInt64, AsLongLong, and None.
| const char* clang::analyze_format_string::LengthModifier::getStart | ( | ) | const [inline] |
Definition at line 91 of file FormatString.h.
| void clang::analyze_format_string::LengthModifier::setKind | ( | Kind | k | ) | [inline] |
Definition at line 111 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 479 of file FormatString.cpp.