clang  3.7.0
Public Types | Public Member Functions | List of all members
clang::analyze_format_string::OptionalAmount Class Reference

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

Detailed Description

Definition at line 268 of file FormatString.h.

Member Enumeration Documentation

Enumerator
NotSpecified 
Constant 
Arg 
Invalid 

Definition at line 270 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 272 of file FormatString.h.

clang::analyze_format_string::OptionalAmount::OptionalAmount ( bool  valid = true)
inline

Definition at line 280 of file FormatString.h.

Member Function Documentation

unsigned clang::analyze_format_string::OptionalAmount::getArgIndex ( ) const
inline

Definition at line 293 of file FormatString.h.

References hasDataArgument().

ArgType analyze_format_string::OptionalAmount::getArgType ( ASTContext Ctx) const

Definition at line 478 of file FormatString.cpp.

References clang::ASTContext::IntTy.

unsigned clang::analyze_format_string::OptionalAmount::getConstantAmount ( ) const
inline
unsigned clang::analyze_format_string::OptionalAmount::getConstantLength ( ) const
inline

Definition at line 308 of file FormatString.h.

References Constant.

HowSpecified clang::analyze_format_string::OptionalAmount::getHowSpecified ( ) const
inline
unsigned clang::analyze_format_string::OptionalAmount::getPositionalArgIndex ( ) const
inline

Definition at line 318 of file FormatString.h.

References hasDataArgument().

Referenced by toString().

const char* clang::analyze_format_string::OptionalAmount::getStart ( ) const
inline

Definition at line 303 of file FormatString.h.

bool clang::analyze_format_string::OptionalAmount::hasDataArgument ( ) const
inline

Definition at line 291 of file FormatString.h.

References Arg.

Referenced by getArgIndex(), and getPositionalArgIndex().

bool clang::analyze_format_string::OptionalAmount::isInvalid ( ) const
inline

Definition at line 284 of file FormatString.h.

References Invalid.

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

void clang::analyze_format_string::OptionalAmount::setHowSpecified ( HowSpecified  h)
inline

Definition at line 289 of file FormatString.h.

void clang::analyze_format_string::OptionalAmount::setUsesDotPrefix ( )
inline

Definition at line 324 of file FormatString.h.

void OptionalAmount::toString ( raw_ostream &  os) const
bool clang::analyze_format_string::OptionalAmount::usesDotPrefix ( ) const
inline

Definition at line 323 of file FormatString.h.

bool clang::analyze_format_string::OptionalAmount::usesPositionalArg ( ) const
inline

Definition at line 317 of file FormatString.h.

Referenced by toString().


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