|
clang 23.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 513 of file FormatString.h.
|
inline |
Definition at line 530 of file FormatString.h.
|
inline |
Definition at line 582 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 800 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 787 of file PrintfFormatString.cpp.
|
inline |
Definition at line 571 of file FormatString.h.
|
inline |
Definition at line 609 of file FormatString.h.
|
inline |
Definition at line 580 of file FormatString.h.
|
inline |
Definition at line 598 of file FormatString.h.
|
inline |
Definition at line 599 of file FormatString.h.
|
inline |
Definition at line 601 of file FormatString.h.
|
inline |
Definition at line 597 of file FormatString.h.
|
inline |
Definition at line 600 of file FormatString.h.
|
inline |
Definition at line 593 of file FormatString.h.
| bool PrintfSpecifier::hasValidAlternativeForm | ( | ) | const |
Definition at line 1097 of file PrintfFormatString.cpp.
| bool PrintfSpecifier::hasValidFieldWidth | ( | ) | const |
Definition at line 1269 of file PrintfFormatString.cpp.
| bool PrintfSpecifier::hasValidLeadingZeros | ( | ) | const |
Definition at line 1130 of file PrintfFormatString.cpp.
| bool PrintfSpecifier::hasValidLeftJustified | ( | ) | const |
Definition at line 1196 of file PrintfFormatString.cpp.
| bool PrintfSpecifier::hasValidPlusPrefix | ( | ) | const |
Definition at line 1069 of file PrintfFormatString.cpp.
| bool PrintfSpecifier::hasValidPrecision | ( | ) | const |
Definition at line 1230 of file PrintfFormatString.cpp.
| bool PrintfSpecifier::hasValidSpacePrefix | ( | ) | const |
Definition at line 1168 of file PrintfFormatString.cpp.
| bool PrintfSpecifier::hasValidThousandsGroupingPrefix | ( | ) | const |
Definition at line 1210 of file PrintfFormatString.cpp.
|
inline |
Definition at line 596 of file FormatString.h.
|
inline |
Definition at line 604 of file FormatString.h.
|
inline |
Definition at line 605 of file FormatString.h.
|
inline |
Definition at line 606 of file FormatString.h.
|
static |
|
inline |
Definition at line 540 of file FormatString.h.
|
inline |
Definition at line 553 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 547 of file FormatString.h.
|
inline |
Definition at line 550 of file FormatString.h.
|
inline |
Definition at line 541 of file FormatString.h.
|
inline |
Definition at line 544 of file FormatString.h.
|
inline |
Definition at line 562 of file FormatString.h.
|
inline |
Definition at line 563 of file FormatString.h.
|
inline |
Definition at line 564 of file FormatString.h.
|
inline |
Definition at line 610 of file FormatString.h.
|
inline |
Definition at line 575 of file FormatString.h.
|
inline |
Definition at line 567 of file FormatString.h.
| void PrintfSpecifier::toString | ( | raw_ostream & | os | ) | const |
Definition at line 1032 of file PrintfFormatString.cpp.
|
inline |
Definition at line 607 of file FormatString.h.