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:
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:
- public clone
- public getDocumentation
- public getKind
- public getLocation
- public getSpelling
- public getSpellingListIndex
- public isImplicit
- public isInherited
- public isLateParsed
- public isPackExpansion
- public printPretty
- public setImplicit
- public setPackExpansion
Inherited from AttributeCommonInfo:
- public getAttrName
- public getAttributeSpellingListIndex
- public getLoc
- public getNormalizedFullName
- public getParsedKind
- public getParsedKind
- public getRange
- public getScopeLoc
- public getScopeName
- public getSyntax
- public hasScope
- public isAlignasAttribute
- protected isAttributeSpellingListCalculated
- public isC2xAttribute
- public isCXX11Attribute
- public isClangScope
- public isContextSensitiveKeywordAttribute
- public isDeclspecAttribute
- public isGNUAttribute
- public isGNUScope
- public isKeywordAttribute
- public isMicrosoftAttribute
- public isStandardAttributeSyntax
- public setAttributeSpellingListIndex
- public setRange
Methods
¶static clang::FormatAttr* Create(
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,
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)
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{}})
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)
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)
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)
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
clang::FormatAttr* clone(
clang::ASTContext& C) const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4326
Parameters
¶int getFirstArg() const
int getFirstArg() const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4338
¶int getFormatIdx() const
int getFormatIdx() const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4334
¶const char* getSpelling() const
const char* getSpelling() const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4329
¶clang::IdentifierInfo* getType() const
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
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