clang
7.0.0
|
Common components of both fprintf and fscanf format strings. More...
Classes | |
class | ArgType |
class | ConversionSpecifier |
class | FormatSpecifier |
class | FormatStringHandler |
class | LengthModifier |
Represents the length modifier in a format string in scanf/printf. More... | |
class | OptionalAmount |
class | OptionalFlag |
Class representing optional flags with location and representation information. More... | |
class | SpecifierResult |
Enumerations | |
enum | PositionContext { FieldWidthPos = 0, PrecisionPos = 1 } |
Functions | |
bool | ParsePrintfString (FormatStringHandler &H, const char *beg, const char *end, const LangOptions &LO, const TargetInfo &Target, bool isFreeBSDKPrintf) |
bool | ParseFormatStringHasSArg (const char *beg, const char *end, const LangOptions &LO, const TargetInfo &Target) |
bool | ParseScanfString (FormatStringHandler &H, const char *beg, const char *end, const LangOptions &LO, const TargetInfo &Target) |
OptionalAmount | ParseAmount (const char *&Beg, const char *E) |
OptionalAmount | ParseNonPositionAmount (const char *&Beg, const char *E, unsigned &argIndex) |
OptionalAmount | ParsePositionAmount (FormatStringHandler &H, const char *Start, const char *&Beg, const char *E, PositionContext p) |
bool | ParseFieldWidth (FormatStringHandler &H, FormatSpecifier &CS, const char *Start, const char *&Beg, const char *E, unsigned *argIndex) |
bool | ParseArgPosition (FormatStringHandler &H, FormatSpecifier &CS, const char *Start, const char *&Beg, const char *E) |
bool | ParseLengthModifier (FormatSpecifier &FS, const char *&Beg, const char *E, const LangOptions &LO, bool IsScanf=false) |
Returns true if a LengthModifier was parsed and installed in the FormatSpecifier& argument, and false otherwise. More... | |
bool | ParseUTF8InvalidSpecifier (const char *SpecifierBegin, const char *FmtStrEnd, unsigned &Len) |
Returns true if the invalid specifier in SpecifierBegin is a UTF-8 string; check that it won't go further than FmtStrEnd and write up the total size in Len . More... | |
Common components of both fprintf and fscanf format strings.
Enumerator | |
---|---|
FieldWidthPos | |
PrecisionPos |
Definition at line 645 of file FormatString.h.
OptionalAmount clang::analyze_format_string::ParseAmount | ( | const char *& | Beg, |
const char * | E | ||
) |
Definition at line 38 of file FormatString.cpp.
Referenced by clang::UpdateOnReturn< T >::~UpdateOnReturn().
bool clang::analyze_format_string::ParseArgPosition | ( | FormatStringHandler & | H, |
FormatSpecifier & | CS, | ||
const char * | Start, | ||
const char *& | Beg, | ||
const char * | E | ||
) |
Definition at line 145 of file FormatString.cpp.
bool clang::analyze_format_string::ParseFieldWidth | ( | FormatStringHandler & | H, |
FormatSpecifier & | CS, | ||
const char * | Start, | ||
const char *& | Beg, | ||
const char * | E, | ||
unsigned * | argIndex | ||
) |
Definition at line 123 of file FormatString.cpp.
bool clang::analyze_format_string::ParseFormatStringHasSArg | ( | const char * | beg, |
const char * | end, | ||
const LangOptions & | LO, | ||
const TargetInfo & | Target | ||
) |
Definition at line 415 of file PrintfFormatString.cpp.
Referenced by clang::analyze_format_string::FormatStringHandler::HandleIncompleteScanList().
bool clang::analyze_format_string::ParseLengthModifier | ( | FormatSpecifier & | FS, |
const char *& | Beg, | ||
const char * | E, | ||
const LangOptions & | LO, | ||
bool | IsScanf = false |
||
) |
Returns true if a LengthModifier was parsed and installed in the FormatSpecifier& argument, and false otherwise.
Definition at line 182 of file FormatString.cpp.
OptionalAmount clang::analyze_format_string::ParseNonPositionAmount | ( | const char *& | Beg, |
const char * | E, | ||
unsigned & | argIndex | ||
) |
Definition at line 64 of file FormatString.cpp.
OptionalAmount clang::analyze_format_string::ParsePositionAmount | ( | FormatStringHandler & | H, |
const char * | Start, | ||
const char *& | Beg, | ||
const char * | E, | ||
PositionContext | p | ||
) |
Definition at line 76 of file FormatString.cpp.
bool clang::analyze_format_string::ParsePrintfString | ( | FormatStringHandler & | H, |
const char * | beg, | ||
const char * | end, | ||
const LangOptions & | LO, | ||
const TargetInfo & | Target, | ||
bool | isFreeBSDKPrintf | ||
) |
Definition at line 384 of file PrintfFormatString.cpp.
Referenced by CheckFormatString(), and clang::analyze_format_string::FormatStringHandler::HandleIncompleteScanList().
bool clang::analyze_format_string::ParseScanfString | ( | FormatStringHandler & | H, |
const char * | beg, | ||
const char * | end, | ||
const LangOptions & | LO, | ||
const TargetInfo & | Target | ||
) |
Definition at line 535 of file ScanfFormatString.cpp.
Referenced by CheckFormatString(), and clang::analyze_format_string::FormatStringHandler::HandleIncompleteScanList().
bool clang::analyze_format_string::ParseUTF8InvalidSpecifier | ( | const char * | SpecifierBegin, |
const char * | FmtStrEnd, | ||
unsigned & | Len | ||
) |
Returns true if the invalid specifier in SpecifierBegin
is a UTF-8 string; check that it won't go further than FmtStrEnd
and write up the total size in Len
.
Definition at line 264 of file FormatString.cpp.