class FormatAttr

Declaration

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

Description

Attr - This represents one attribute.

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

Inherits from: InheritableAttr

Member Variables

private clang::IdentifierInfo* type
private int formatIdx
private int firstArg

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::FormatAttr * Create(clang::ASTContext & Ctx, clang::IdentifierInfo * Type, int FormatIdx, int FirstArg, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::FormatAttr * Create(clang::ASTContext & Ctx, clang::IdentifierInfo * Type, int FormatIdx, int FirstArg, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::FormatAttr * CreateImplicit(clang::ASTContext & Ctx, clang::IdentifierInfo * Type, int FormatIdx, int FirstArg, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public static clang::FormatAttr * CreateImplicit(clang::ASTContext & Ctx, clang::IdentifierInfo * Type, int FormatIdx, int FirstArg, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public FormatAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, clang::IdentifierInfo * Type, int FormatIdx, int FirstArg)
  • public static bool classof(const clang::Attr * A)
  • public clang::FormatAttr * clone(clang::ASTContext & C) const
  • public int getFirstArg() const
  • public int getFormatIdx() const
  • public const char * getSpelling() const
  • public clang::IdentifierInfo * getType() 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::FormatAttr* Create(
    clang::ASTContext& Ctx,
    clang::IdentifierInfo* Type,
    int FormatIdx,
    int FirstArg,
    const clang::AttributeCommonInfo& CommonInfo)

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

Parameters

clang::ASTContext& Ctx
clang::IdentifierInfo* Type
int FormatIdx
int FirstArg
const clang::AttributeCommonInfo& CommonInfo

static clang::FormatAttr* Create(
    clang::ASTContext& Ctx,
    clang::IdentifierInfo* Type,
    int FormatIdx,
    int FirstArg,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
clang::IdentifierInfo* Type
int FormatIdx
int FirstArg
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

static clang::FormatAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::IdentifierInfo* Type,
    int FormatIdx,
    int FirstArg,
    const clang::AttributeCommonInfo& CommonInfo =
        {clang::SourceRange{}})

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

Parameters

clang::ASTContext& Ctx
clang::IdentifierInfo* Type
int FormatIdx
int FirstArg
const clang::AttributeCommonInfo& CommonInfo = {clang::SourceRange{}}

static clang::FormatAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::IdentifierInfo* Type,
    int FormatIdx,
    int FirstArg,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
clang::IdentifierInfo* Type
int FormatIdx
int FirstArg
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

FormatAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    clang::IdentifierInfo* Type,
    int FormatIdx,
    int FirstArg)

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

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
clang::IdentifierInfo* Type
int FormatIdx
int FirstArg

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

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

Parameters

const clang::Attr* A

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

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

Parameters

clang::ASTContext& C

int getFirstArg() const

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

int getFormatIdx() const

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

const char* getSpelling() const

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

clang::IdentifierInfo* getType() const

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

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

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

Parameters

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