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

Methods

OptionalAmount(bool valid = true)

Declared at: clang/include/clang/AST/FormatString.h:337

Parameters

bool valid = true

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)

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

Declared at: clang/include/clang/AST/FormatString.h:354

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

Declared at: clang/include/clang/AST/FormatString.h:359

unsigned int getConstantLength() const

Declared at: clang/include/clang/AST/FormatString.h:369

clang::analyze_format_string::OptionalAmount::
    HowSpecified
    getHowSpecified() const

Declared at: clang/include/clang/AST/FormatString.h:349

unsigned int getPositionalArgIndex() const

Declared at: clang/include/clang/AST/FormatString.h:379

const char* getStart() const

Declared at: clang/include/clang/AST/FormatString.h:364

bool hasDataArgument() const

Declared at: clang/include/clang/AST/FormatString.h:352

bool isInvalid() const

Declared at: clang/include/clang/AST/FormatString.h:345

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

Declared at: clang/include/clang/AST/FormatString.h:385

void toString(llvm::raw_ostream& os) const

Declared at: clang/include/clang/AST/FormatString.h:376

Parameters

llvm::raw_ostream& os

bool usesDotPrefix() const

Declared at: clang/include/clang/AST/FormatString.h:384

bool usesPositionalArg() const

Declared at: clang/include/clang/AST/FormatString.h:378