clang 20.0.0git
|
#include "clang/AST/FormatString.h"
Public Types | |
enum | HowSpecified { NotSpecified , Constant , Arg , Invalid } |
Public Member Functions | |
OptionalAmount (HowSpecified howSpecified, unsigned amount, const char *amountStart, unsigned amountLength, bool usesPositionalArg) | |
OptionalAmount (bool valid=true) | |
OptionalAmount (unsigned Amount) | |
bool | isInvalid () const |
HowSpecified | getHowSpecified () const |
void | setHowSpecified (HowSpecified h) |
bool | hasDataArgument () const |
unsigned | getArgIndex () const |
unsigned | getConstantAmount () const |
const char * | getStart () const |
unsigned | getConstantLength () const |
ArgType | getArgType (ASTContext &Ctx) const |
void | toString (raw_ostream &os) const |
bool | usesPositionalArg () const |
unsigned | getPositionalArgIndex () const |
bool | usesDotPrefix () const |
void | setUsesDotPrefix () |
Definition at line 349 of file FormatString.h.
Enumerator | |
---|---|
NotSpecified | |
Constant | |
Arg | |
Invalid |
Definition at line 351 of file FormatString.h.
|
inline |
Definition at line 353 of file FormatString.h.
Definition at line 361 of file FormatString.h.
|
inlineexplicit |
Definition at line 365 of file FormatString.h.
|
inline |
Definition at line 378 of file FormatString.h.
References hasDataArgument().
ArgType analyze_format_string::OptionalAmount::getArgType | ( | ASTContext & | Ctx | ) | const |
Definition at line 670 of file FormatString.cpp.
References clang::ASTContext::IntTy.
|
inline |
Definition at line 383 of file FormatString.h.
References Constant.
Referenced by clang::analyze_printf::PrintfSpecifier::getArgType(), clang::analyze_format_string::ParseArgPosition(), clang::analyze_format_string::ParsePositionAmount(), and clang::analyze_printf::PrintfSpecifier::toString().
|
inline |
Definition at line 393 of file FormatString.h.
References Constant.
|
inline |
Definition at line 373 of file FormatString.h.
Referenced by clang::analyze_printf::PrintfSpecifier::hasValidFieldWidth(), clang::analyze_printf::PrintfSpecifier::hasValidPrecision(), clang::analyze_format_string::ParseArgPosition(), clang::analyze_format_string::ParsePositionAmount(), ParseScanfSpecifier(), and clang::analyze_format_string::ParseVectorModifier().
|
inline |
Definition at line 403 of file FormatString.h.
References hasDataArgument().
Referenced by toString().
|
inline |
Definition at line 388 of file FormatString.h.
|
inline |
Definition at line 376 of file FormatString.h.
References Arg.
Referenced by getArgIndex(), and getPositionalArgIndex().
|
inline |
Definition at line 369 of file FormatString.h.
References Invalid.
Referenced by clang::analyze_printf::PrintfSpecifier::fixType(), clang::analyze_printf::PrintfSpecifier::getArgType(), clang::analyze_format_string::FormatSpecifier::hasValidLengthModifier(), clang::analyze_format_string::ParseFieldWidth(), ParsePrecision(), and clang::analyze_printf::PrintfSpecifier::toString().
|
inline |
Definition at line 374 of file FormatString.h.
Referenced by clang::analyze_printf::PrintfSpecifier::fixType().
|
inline |
Definition at line 409 of file FormatString.h.
Referenced by clang::analyze_printf::PrintfSpecifier::setPrecision().
void OptionalAmount::toString | ( | raw_ostream & | os | ) | const |
Definition at line 813 of file FormatString.cpp.
References Arg, Constant, getPositionalArgIndex(), Invalid, NotSpecified, and usesPositionalArg().
Referenced by clang::analyze_printf::PrintfSpecifier::toString(), and clang::analyze_scanf::ScanfSpecifier::toString().
|
inline |
Definition at line 408 of file FormatString.h.
|
inline |
Definition at line 402 of file FormatString.h.
Referenced by toString().