class ModeAttr

Declaration

class ModeAttr : public Attr { /* full declaration omitted */ };

Description

Attr - This represents one attribute.

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

Inherits from: Attr

Member Variables

private clang::IdentifierInfo* mode

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::ModeAttr * Create(clang::ASTContext & Ctx, clang::IdentifierInfo * Mode, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::ModeAttr * Create(clang::ASTContext & Ctx, clang::IdentifierInfo * Mode, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::ModeAttr * CreateImplicit(clang::ASTContext & Ctx, clang::IdentifierInfo * Mode, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public static clang::ModeAttr * CreateImplicit(clang::ASTContext & Ctx, clang::IdentifierInfo * Mode, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public ModeAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, clang::IdentifierInfo * Mode)
  • public static bool classof(const clang::Attr * A)
  • public clang::ModeAttr * clone(clang::ASTContext & C) const
  • public clang::IdentifierInfo * getMode() const
  • public const char * getSpelling() const
  • public void printPretty(llvm::raw_ostream & OS, const clang::PrintingPolicy & Policy) const

Inherited from Attr:

Inherited from AttributeCommonInfo:

Methods

static clang::ModeAttr* Create(
    clang::ASTContext& Ctx,
    clang::IdentifierInfo* Mode,
    const clang::AttributeCommonInfo& CommonInfo)

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

Parameters

clang::ASTContext& Ctx
clang::IdentifierInfo* Mode
const clang::AttributeCommonInfo& CommonInfo

static clang::ModeAttr* Create(
    clang::ASTContext& Ctx,
    clang::IdentifierInfo* Mode,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
clang::IdentifierInfo* Mode
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

static clang::ModeAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::IdentifierInfo* Mode,
    const clang::AttributeCommonInfo& CommonInfo =
        {clang::SourceRange{}})

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

Parameters

clang::ASTContext& Ctx
clang::IdentifierInfo* Mode
const clang::AttributeCommonInfo& CommonInfo = {clang::SourceRange{}}

static clang::ModeAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::IdentifierInfo* Mode,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
clang::IdentifierInfo* Mode
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

ModeAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    clang::IdentifierInfo* Mode)

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

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
clang::IdentifierInfo* Mode

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

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

Parameters

const clang::Attr* A

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

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

Parameters

clang::ASTContext& C

clang::IdentifierInfo* getMode() const

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

const char* getSpelling() const

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

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

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

Parameters

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