class OptionalAmount
Declaration
class OptionalAmount { /* full declaration omitted */ };
Declared at: clang/include/clang/AST/FormatString.h:325
Member Variables
- private const char* start
- private unsigned int length
- private clang::analyze_format_string::OptionalAmount:: HowSpecified hs
- private unsigned int amt
- private bool UsesPositionalArg
- private bool UsesDotPrefix
Method Overview
- public OptionalAmount(bool valid = true)
- public OptionalAmount(unsigned int Amount)
- public OptionalAmount(clang::analyze_format_string::OptionalAmount::HowSpecified howSpecified, unsigned int amount, const char * amountStart, unsigned int amountLength, bool usesPositionalArg)
- public unsigned int getArgIndex() const
- public clang::analyze_format_string::ArgType getArgType(clang::ASTContext & Ctx) const
- public unsigned int getConstantAmount() const
- public unsigned int getConstantLength() const
- public clang::analyze_format_string::OptionalAmount::HowSpecified getHowSpecified() const
- public unsigned int getPositionalArgIndex() const
- public const char * getStart() const
- public bool hasDataArgument() const
- public bool isInvalid() const
- public void setHowSpecified(clang::analyze_format_string::OptionalAmount::HowSpecified h)
- public void setUsesDotPrefix()
- public void toString(llvm::raw_ostream & os) const
- public bool usesDotPrefix() const
- public bool usesPositionalArg() const
Methods
¶OptionalAmount(bool valid = true)
OptionalAmount(bool valid = true)
Declared at: clang/include/clang/AST/FormatString.h:337
Parameters
- bool valid = true
¶OptionalAmount(unsigned int Amount)
OptionalAmount(unsigned int Amount)
Declared at: clang/include/clang/AST/FormatString.h:341
Parameters
- unsigned int Amount
¶OptionalAmount(
clang::analyze_format_string::OptionalAmount::
HowSpecified howSpecified,
unsigned int amount,
const char* amountStart,
unsigned int amountLength,
bool usesPositionalArg)
OptionalAmount(
clang::analyze_format_string::OptionalAmount::
HowSpecified howSpecified,
unsigned int amount,
const char* amountStart,
unsigned int amountLength,
bool usesPositionalArg)
Declared at: clang/include/clang/AST/FormatString.h:329
Parameters
- clang::analyze_format_string::OptionalAmount:: HowSpecified howSpecified
- unsigned int amount
- const char* amountStart
- unsigned int amountLength
- bool usesPositionalArg
¶unsigned int getArgIndex() const
unsigned int getArgIndex() const
Declared at: clang/include/clang/AST/FormatString.h:354
¶clang::analyze_format_string::ArgType getArgType(
clang::ASTContext& Ctx) const
clang::analyze_format_string::ArgType getArgType(
clang::ASTContext& Ctx) const
Declared at: clang/include/clang/AST/FormatString.h:374
Parameters
- clang::ASTContext& Ctx
¶unsigned int getConstantAmount() const
unsigned int getConstantAmount() const
Declared at: clang/include/clang/AST/FormatString.h:359
¶unsigned int getConstantLength() const
unsigned int getConstantLength() const
Declared at: clang/include/clang/AST/FormatString.h:369
¶clang::analyze_format_string::OptionalAmount::
HowSpecified
getHowSpecified() const
clang::analyze_format_string::OptionalAmount::
HowSpecified
getHowSpecified() const
Declared at: clang/include/clang/AST/FormatString.h:349
¶unsigned int getPositionalArgIndex() const
unsigned int getPositionalArgIndex() const
Declared at: clang/include/clang/AST/FormatString.h:379
¶const char* getStart() const
const char* getStart() const
Declared at: clang/include/clang/AST/FormatString.h:364
¶bool hasDataArgument() const
bool hasDataArgument() const
Declared at: clang/include/clang/AST/FormatString.h:352
¶bool isInvalid() const
bool isInvalid() const
Declared at: clang/include/clang/AST/FormatString.h:345
¶void setHowSpecified(
clang::analyze_format_string::OptionalAmount::
HowSpecified h)
void setHowSpecified(
clang::analyze_format_string::OptionalAmount::
HowSpecified h)
Declared at: clang/include/clang/AST/FormatString.h:350
Parameters
- clang::analyze_format_string::OptionalAmount:: HowSpecified h
¶void setUsesDotPrefix()
void setUsesDotPrefix()
Declared at: clang/include/clang/AST/FormatString.h:385
¶void toString(llvm::raw_ostream& os) const
void toString(llvm::raw_ostream& os) const
Declared at: clang/include/clang/AST/FormatString.h:376
Parameters
¶bool usesDotPrefix() const
bool usesDotPrefix() const
Declared at: clang/include/clang/AST/FormatString.h:384
¶bool usesPositionalArg() const
bool usesPositionalArg() const
Declared at: clang/include/clang/AST/FormatString.h:378