class FormatSpecifier
Declaration
class FormatSpecifier { /* full declaration omitted */ };
Declared at: clang/include/clang/AST/FormatString.h:397
Member Variables
- protected clang::analyze_format_string::LengthModifier LM
- protected clang::analyze_format_string::OptionalAmount FieldWidth
- protected clang::analyze_format_string::ConversionSpecifier CS
- protected clang::analyze_format_string::OptionalAmount VectorNumElts
- protected bool UsesPositionalArg
- Positional arguments, an IEEE extension: IEEE Std 1003.1, 2004 Edition http://www.opengroup.org/onlinepubs/009695399/functions/printf.html
- protected unsigned int argIndex
Method Overview
- public FormatSpecifier(bool isPrintf)
- public unsigned int getArgIndex() const
- public Optional<clang::analyze_format_string::LengthModifier> getCorrectedLengthModifier() const
- public const clang::analyze_format_string::OptionalAmount & getFieldWidth() const
- public const clang::analyze_format_string::LengthModifier & getLengthModifier() const
- public unsigned int getPositionalArgIndex() const
- public const clang::analyze_format_string::OptionalAmount & getVectorNumElts() const
- public bool hasStandardConversionSpecifier(const clang::LangOptions & LangOpt) const
- public bool hasStandardLengthConversionCombination() const
- public bool hasStandardLengthModifier() const
- public bool hasValidLengthModifier(const clang::TargetInfo & Target, const clang::LangOptions & LO) const
- public static bool namedTypeToLengthModifier(clang::QualType QT, clang::analyze_format_string::LengthModifier & LM)
- public void setArgIndex(unsigned int i)
- public void setFieldWidth(const clang::analyze_format_string::OptionalAmount & Amt)
- public void setLengthModifier(clang::analyze_format_string::LengthModifier lm)
- public void setUsesPositionalArg()
- public void setVectorNumElts(const clang::analyze_format_string::OptionalAmount & Amt)
- public bool usesPositionalArg() const
Methods
¶FormatSpecifier(bool isPrintf)
FormatSpecifier(bool isPrintf)
Declared at: clang/include/clang/AST/FormatString.h:410
Parameters
- bool isPrintf
¶unsigned int getArgIndex() const
unsigned int getArgIndex() const
Declared at: clang/include/clang/AST/FormatString.h:424
¶Optional<
clang::analyze_format_string::LengthModifier>
getCorrectedLengthModifier() const
Optional<
clang::analyze_format_string::LengthModifier>
getCorrectedLengthModifier() const
Declared at: clang/include/clang/AST/FormatString.h:459
¶const clang::analyze_format_string::
OptionalAmount&
getFieldWidth() const
const clang::analyze_format_string::
OptionalAmount&
getFieldWidth() const
Declared at: clang/include/clang/AST/FormatString.h:436
¶const clang::analyze_format_string::
LengthModifier&
getLengthModifier() const
const clang::analyze_format_string::
LengthModifier&
getLengthModifier() const
Declared at: clang/include/clang/AST/FormatString.h:432
¶unsigned int getPositionalArgIndex() const
unsigned int getPositionalArgIndex() const
Declared at: clang/include/clang/AST/FormatString.h:428
¶const clang::analyze_format_string::
OptionalAmount&
getVectorNumElts() const
const clang::analyze_format_string::
OptionalAmount&
getVectorNumElts() const
Declared at: clang/include/clang/AST/FormatString.h:444
¶bool hasStandardConversionSpecifier(
const clang::LangOptions& LangOpt) const
bool hasStandardConversionSpecifier(
const clang::LangOptions& LangOpt) const
Declared at: clang/include/clang/AST/FormatString.h:461
Parameters
- const clang::LangOptions& LangOpt
¶bool hasStandardLengthConversionCombination()
const
bool hasStandardLengthConversionCombination()
const
Declared at: clang/include/clang/AST/FormatString.h:463
¶bool hasStandardLengthModifier() const
bool hasStandardLengthModifier() const
Declared at: clang/include/clang/AST/FormatString.h:457
¶bool hasValidLengthModifier(
const clang::TargetInfo& Target,
const clang::LangOptions& LO) const
bool hasValidLengthModifier(
const clang::TargetInfo& Target,
const clang::LangOptions& LO) const
Declared at: clang/include/clang/AST/FormatString.h:454
Parameters
- const clang::TargetInfo& Target
- const clang::LangOptions& LO
¶static bool namedTypeToLengthModifier(
clang::QualType QT,
clang::analyze_format_string::LengthModifier&
LM)
static bool namedTypeToLengthModifier(
clang::QualType QT,
clang::analyze_format_string::LengthModifier&
LM)
Description
For a TypedefType QT, if it is a named integer type such as size_t, assign the appropriate value to LM and return true.
Declared at: clang/include/clang/AST/FormatString.h:467
Parameters
¶void setArgIndex(unsigned int i)
void setArgIndex(unsigned int i)
Declared at: clang/include/clang/AST/FormatString.h:420
Parameters
- unsigned int i
¶void setFieldWidth(
const clang::analyze_format_string::
OptionalAmount& Amt)
void setFieldWidth(
const clang::analyze_format_string::
OptionalAmount& Amt)
Declared at: clang/include/clang/AST/FormatString.h:448
Parameters
- const clang::analyze_format_string:: OptionalAmount& Amt
¶void setLengthModifier(
clang::analyze_format_string::LengthModifier
lm)
void setLengthModifier(
clang::analyze_format_string::LengthModifier
lm)
Declared at: clang/include/clang/AST/FormatString.h:414
Parameters
¶void setUsesPositionalArg()
void setUsesPositionalArg()
Declared at: clang/include/clang/AST/FormatString.h:418
¶void setVectorNumElts(
const clang::analyze_format_string::
OptionalAmount& Amt)
void setVectorNumElts(
const clang::analyze_format_string::
OptionalAmount& Amt)
Declared at: clang/include/clang/AST/FormatString.h:440
Parameters
- const clang::analyze_format_string:: OptionalAmount& Amt
¶bool usesPositionalArg() const
bool usesPositionalArg() const
Declared at: clang/include/clang/AST/FormatString.h:452