clang
3.9.0
|
#include <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) | |
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 273 of file FormatString.h.
Enumerator | |
---|---|
NotSpecified | |
Constant | |
Arg | |
Invalid |
Definition at line 275 of file FormatString.h.
|
inline |
Definition at line 277 of file FormatString.h.
Definition at line 285 of file FormatString.h.
|
inline |
Definition at line 298 of file FormatString.h.
References hasDataArgument().
ArgType analyze_format_string::OptionalAmount::getArgType | ( | ASTContext & | Ctx | ) | const |
Definition at line 509 of file FormatString.cpp.
References clang::ASTContext::IntTy.
|
inline |
Definition at line 303 of file FormatString.h.
References Constant.
Referenced by clang::analyze_format_string::ParseArgPosition(), and clang::analyze_format_string::ParsePositionAmount().
|
inline |
Definition at line 313 of file FormatString.h.
References Constant.
|
inline |
Definition at line 293 of file FormatString.h.
Referenced by clang::analyze_format_string::ParseArgPosition(), and clang::analyze_format_string::ParsePositionAmount().
|
inline |
Definition at line 323 of file FormatString.h.
References hasDataArgument().
Referenced by toString().
|
inline |
Definition at line 308 of file FormatString.h.
|
inline |
Definition at line 296 of file FormatString.h.
References Arg.
Referenced by getArgIndex(), and getPositionalArgIndex().
|
inline |
Definition at line 289 of file FormatString.h.
References Invalid.
Referenced by clang::analyze_format_string::ParseFieldWidth(), and ParsePrecision().
|
inline |
Definition at line 294 of file FormatString.h.
|
inline |
Definition at line 329 of file FormatString.h.
void OptionalAmount::toString | ( | raw_ostream & | os | ) | const |
Definition at line 636 of file FormatString.cpp.
References Arg, Constant, getPositionalArgIndex(), Invalid, NotSpecified, and usesPositionalArg().
|
inline |
Definition at line 328 of file FormatString.h.
|
inline |
Definition at line 322 of file FormatString.h.
Referenced by toString().