clang 22.0.0git
|
#include "clang/AST/FormatString.h"
Static Public Member Functions | |
static PrintfSpecifier | Parse (const char *beg, const char *end) |
Static Public Member Functions inherited from clang::analyze_format_string::FormatSpecifier | |
static bool | namedTypeToLengthModifier (ASTContext &Ctx, QualType QT, LengthModifier &LM) |
For a TypedefType QT, if it is a named integer type such as size_t, assign the appropriate value to LM and return true. |
Additional Inherited Members | |
Protected Attributes inherited from clang::analyze_format_string::FormatSpecifier | |
LengthModifier | LM |
OptionalAmount | FieldWidth |
ConversionSpecifier | CS |
OptionalAmount | VectorNumElts |
bool | UsesPositionalArg |
Positional arguments, an IEEE extension: IEEE Std 1003.1, 2004 Edition http://www.opengroup.org/onlinepubs/009695399/functions/printf.html. | |
unsigned | argIndex |
Definition at line 526 of file FormatString.h.
|
inline |
Definition at line 543 of file FormatString.h.
|
inline |
Definition at line 599 of file FormatString.h.
bool PrintfSpecifier::fixType | ( | QualType | QT, |
const LangOptions & | LangOpt, | ||
ASTContext & | Ctx, | ||
bool | IsObjCLiteral ) |
Changes the specifier and length according to a QualType, retaining any flags or options.
Returns true on success, or false when a conversion was not successful.
Definition at line 750 of file PrintfFormatString.cpp.
ArgType PrintfSpecifier::getArgType | ( | ASTContext & | Ctx, |
bool | IsObjCLiteral ) const |
Returns the builtin type that a data argument paired with this format specifier should have.
This method will return null if the format specifier does not have a matching data argument or the matching argument matches more than one type.
Definition at line 736 of file PrintfFormatString.cpp.
|
inline |
Definition at line 586 of file FormatString.h.
|
inline |
Definition at line 624 of file FormatString.h.
|
inline |
Definition at line 595 of file FormatString.h.
|
inline |
Definition at line 615 of file FormatString.h.
|
inline |
Definition at line 616 of file FormatString.h.
|
inline |
Definition at line 618 of file FormatString.h.
|
inline |
Definition at line 614 of file FormatString.h.
|
inline |
Definition at line 617 of file FormatString.h.
|
inline |
Definition at line 610 of file FormatString.h.
bool PrintfSpecifier::hasValidAlternativeForm | ( | ) | const |
Definition at line 1037 of file PrintfFormatString.cpp.
bool PrintfSpecifier::hasValidFieldWidth | ( | ) | const |
Definition at line 1209 of file PrintfFormatString.cpp.
bool PrintfSpecifier::hasValidLeadingZeros | ( | ) | const |
Definition at line 1070 of file PrintfFormatString.cpp.
bool PrintfSpecifier::hasValidLeftJustified | ( | ) | const |
Definition at line 1136 of file PrintfFormatString.cpp.
bool PrintfSpecifier::hasValidPlusPrefix | ( | ) | const |
Definition at line 1009 of file PrintfFormatString.cpp.
bool PrintfSpecifier::hasValidPrecision | ( | ) | const |
Definition at line 1170 of file PrintfFormatString.cpp.
bool PrintfSpecifier::hasValidSpacePrefix | ( | ) | const |
Definition at line 1108 of file PrintfFormatString.cpp.
bool PrintfSpecifier::hasValidThousandsGroupingPrefix | ( | ) | const |
Definition at line 1150 of file PrintfFormatString.cpp.
|
inline |
Definition at line 613 of file FormatString.h.
|
inline |
Definition at line 619 of file FormatString.h.
|
inline |
Definition at line 620 of file FormatString.h.
|
inline |
Definition at line 621 of file FormatString.h.
|
static |
|
inline |
Definition at line 553 of file FormatString.h.
|
inline |
Definition at line 568 of file FormatString.h.
|
inline |
Definition at line 571 of file FormatString.h.
|
inline |
Definition at line 574 of file FormatString.h.
|
inline |
Definition at line 562 of file FormatString.h.
|
inline |
Definition at line 565 of file FormatString.h.
|
inline |
Definition at line 556 of file FormatString.h.
|
inline |
Definition at line 559 of file FormatString.h.
|
inline |
Definition at line 577 of file FormatString.h.
|
inline |
Definition at line 578 of file FormatString.h.
|
inline |
Definition at line 579 of file FormatString.h.
|
inline |
Definition at line 625 of file FormatString.h.
|
inline |
Definition at line 590 of file FormatString.h.
|
inline |
Definition at line 582 of file FormatString.h.
void PrintfSpecifier::toString | ( | raw_ostream & | os | ) | const |
Definition at line 977 of file PrintfFormatString.cpp.
|
inline |
Definition at line 622 of file FormatString.h.