|
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 549 of file FormatString.h.
|
inline |
Definition at line 566 of file FormatString.h.
|
inline |
Definition at line 618 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 830 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 817 of file PrintfFormatString.cpp.
|
inline |
Definition at line 607 of file FormatString.h.
|
inline |
Definition at line 645 of file FormatString.h.
|
inline |
Definition at line 616 of file FormatString.h.
|
inline |
Definition at line 634 of file FormatString.h.
|
inline |
Definition at line 635 of file FormatString.h.
|
inline |
Definition at line 637 of file FormatString.h.
|
inline |
Definition at line 633 of file FormatString.h.
|
inline |
Definition at line 636 of file FormatString.h.
|
inline |
Definition at line 629 of file FormatString.h.
| bool PrintfSpecifier::hasValidAlternativeForm | ( | ) | const |
Definition at line 1127 of file PrintfFormatString.cpp.
| bool PrintfSpecifier::hasValidFieldWidth | ( | ) | const |
Definition at line 1299 of file PrintfFormatString.cpp.
| bool PrintfSpecifier::hasValidLeadingZeros | ( | ) | const |
Definition at line 1160 of file PrintfFormatString.cpp.
| bool PrintfSpecifier::hasValidLeftJustified | ( | ) | const |
Definition at line 1226 of file PrintfFormatString.cpp.
| bool PrintfSpecifier::hasValidPlusPrefix | ( | ) | const |
Definition at line 1099 of file PrintfFormatString.cpp.
| bool PrintfSpecifier::hasValidPrecision | ( | ) | const |
Definition at line 1260 of file PrintfFormatString.cpp.
| bool PrintfSpecifier::hasValidSpacePrefix | ( | ) | const |
Definition at line 1198 of file PrintfFormatString.cpp.
| bool PrintfSpecifier::hasValidThousandsGroupingPrefix | ( | ) | const |
Definition at line 1240 of file PrintfFormatString.cpp.
|
inline |
Definition at line 632 of file FormatString.h.
|
inline |
Definition at line 640 of file FormatString.h.
|
inline |
Definition at line 641 of file FormatString.h.
|
inline |
Definition at line 642 of file FormatString.h.
|
static |
|
inline |
Definition at line 576 of file FormatString.h.
|
inline |
Definition at line 589 of file FormatString.h.
|
inline |
Definition at line 592 of file FormatString.h.
|
inline |
Definition at line 595 of file FormatString.h.
|
inline |
Definition at line 583 of file FormatString.h.
|
inline |
Definition at line 586 of file FormatString.h.
|
inline |
Definition at line 577 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 600 of file FormatString.h.
|
inline |
Definition at line 646 of file FormatString.h.
|
inline |
Definition at line 611 of file FormatString.h.
|
inline |
Definition at line 603 of file FormatString.h.
| void PrintfSpecifier::toString | ( | raw_ostream & | os | ) | const |
Definition at line 1062 of file PrintfFormatString.cpp.
|
inline |
Definition at line 643 of file FormatString.h.