clang API Documentation

Public Types | Public Member Functions
clang::analyze_format_string::OptionalAmount Class Reference

#include <FormatString.h>

List of all members.

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 ()

Detailed Description

Definition at line 257 of file FormatString.h.


Member Enumeration Documentation

Enumerator:
NotSpecified 
Constant 
Arg 
Invalid 

Definition at line 259 of file FormatString.h.


Constructor & Destructor Documentation

clang::analyze_format_string::OptionalAmount::OptionalAmount ( HowSpecified  howSpecified,
unsigned  amount,
const char *  amountStart,
unsigned  amountLength,
bool  usesPositionalArg 
) [inline]

Definition at line 261 of file FormatString.h.

Definition at line 269 of file FormatString.h.


Member Function Documentation

Definition at line 282 of file FormatString.h.

References hasDataArgument().

Definition at line 470 of file FormatString.cpp.

References clang::ASTContext::IntTy.

Definition at line 297 of file FormatString.h.

References Constant.

Definition at line 307 of file FormatString.h.

References hasDataArgument().

Referenced by toString().

Definition at line 292 of file FormatString.h.

Definition at line 280 of file FormatString.h.

References Arg.

Referenced by getArgIndex(), and getPositionalArgIndex().

Definition at line 273 of file FormatString.h.

References Invalid.

Referenced by clang::analyze_format_string::ParseFieldWidth(), and ParsePrecision().

Definition at line 278 of file FormatString.h.

Definition at line 313 of file FormatString.h.

void OptionalAmount::toString ( raw_ostream &  os) const

Definition at line 312 of file FormatString.h.

Definition at line 306 of file FormatString.h.

Referenced by toString().


The documentation for this class was generated from the following files: