class FormatArgAttr

Declaration

class FormatArgAttr : public InheritableAttr { /* full declaration omitted */ };

Description

Attr - This represents one attribute.

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4347

Inherits from: InheritableAttr

Member Variables

private clang::ParamIdx formatIdx

Inherited from Attr:

protected Inherited
protected IsPackExpansion
protected Implicit
protected IsLateParsed
protected InheritEvenIfAlreadyPresent

Inherited from AttributeCommonInfo:

protected static SpellingNotCalculated = 15

Method Overview

  • public static clang::FormatArgAttr * Create(clang::ASTContext & Ctx, clang::ParamIdx FormatIdx, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::FormatArgAttr * Create(clang::ASTContext & Ctx, clang::ParamIdx FormatIdx, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::FormatArgAttr * CreateImplicit(clang::ASTContext & Ctx, clang::ParamIdx FormatIdx, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public static clang::FormatArgAttr * CreateImplicit(clang::ASTContext & Ctx, clang::ParamIdx FormatIdx, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public FormatArgAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, clang::ParamIdx FormatIdx)
  • public static bool classof(const clang::Attr * A)
  • public clang::FormatArgAttr * clone(clang::ASTContext & C) const
  • public clang::ParamIdx getFormatIdx() const
  • public const char * getSpelling() const
  • public void printPretty(llvm::raw_ostream & OS, const clang::PrintingPolicy & Policy) const

Inherited from InheritableAttr:

Inherited from Attr:

Inherited from AttributeCommonInfo:

Methods

static clang::FormatArgAttr* Create(
    clang::ASTContext& Ctx,
    clang::ParamIdx FormatIdx,
    const clang::AttributeCommonInfo& CommonInfo)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4361

Parameters

clang::ASTContext& Ctx
clang::ParamIdx FormatIdx
const clang::AttributeCommonInfo& CommonInfo

static clang::FormatArgAttr* Create(
    clang::ASTContext& Ctx,
    clang::ParamIdx FormatIdx,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4363

Parameters

clang::ASTContext& Ctx
clang::ParamIdx FormatIdx
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

static clang::FormatArgAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::ParamIdx FormatIdx,
    const clang::AttributeCommonInfo& CommonInfo =
        {clang::SourceRange{}})

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4360

Parameters

clang::ASTContext& Ctx
clang::ParamIdx FormatIdx
const clang::AttributeCommonInfo& CommonInfo = {clang::SourceRange{}}

static clang::FormatArgAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::ParamIdx FormatIdx,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4362

Parameters

clang::ASTContext& Ctx
clang::ParamIdx FormatIdx
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

FormatArgAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    clang::ParamIdx FormatIdx)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4366

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
clang::ParamIdx FormatIdx

static bool classof(const clang::Attr* A)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4380

Parameters

const clang::Attr* A

clang::FormatArgAttr* clone(
    clang::ASTContext& C) const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4370

Parameters

clang::ASTContext& C

clang::ParamIdx getFormatIdx() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4374

const char* getSpelling() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4373

void printPretty(
    llvm::raw_ostream& OS,
    const clang::PrintingPolicy& Policy) const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4371

Parameters

llvm::raw_ostream& OS
const clang::PrintingPolicy& Policy