class SectionAttr

Declaration

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

Description

Attr - This represents one attribute.

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

Inherits from: InheritableAttr

Member Variables

private unsigned int nameLength
private char* name

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::SectionAttr * Create(clang::ASTContext & Ctx, llvm::StringRef Name, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::SectionAttr * Create(clang::ASTContext & Ctx, llvm::StringRef Name, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax, SectionAttr::Spelling S = static_cast<clang::SectionAttr::Spelling>(SpellingNotCalculated))
  • public static clang::SectionAttr * CreateImplicit(clang::ASTContext & Ctx, llvm::StringRef Name, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public static clang::SectionAttr * CreateImplicit(clang::ASTContext & Ctx, llvm::StringRef Name, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax, SectionAttr::Spelling S = static_cast<clang::SectionAttr::Spelling>(SpellingNotCalculated))
  • public SectionAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, llvm::StringRef Name)
  • public static bool classof(const clang::Attr * A)
  • public clang::SectionAttr * clone(clang::ASTContext & C) const
  • public llvm::StringRef getName() const
  • public unsigned int getNameLength() const
  • public clang::SectionAttr::Spelling getSemanticSpelling() const
  • public const char * getSpelling() const
  • public void printPretty(llvm::raw_ostream & OS, const clang::PrintingPolicy & Policy) const
  • public void setName(clang::ASTContext & C, llvm::StringRef S)

Inherited from InheritableAttr:

Inherited from Attr:

Inherited from AttributeCommonInfo:

Methods

static clang::SectionAttr* Create(
    clang::ASTContext& Ctx,
    llvm::StringRef Name,
    const clang::AttributeCommonInfo& CommonInfo)

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

Parameters

clang::ASTContext& Ctx
llvm::StringRef Name
const clang::AttributeCommonInfo& CommonInfo

static clang::SectionAttr* Create(
    clang::ASTContext& Ctx,
    llvm::StringRef Name,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax,
    SectionAttr::Spelling S =
        static_cast<clang::SectionAttr::Spelling>(
            SpellingNotCalculated))

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

Parameters

clang::ASTContext& Ctx
llvm::StringRef Name
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax
SectionAttr::Spelling S = static_cast<clang::SectionAttr::Spelling>(SpellingNotCalculated)

static clang::SectionAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    llvm::StringRef Name,
    const clang::AttributeCommonInfo& CommonInfo =
        {clang::SourceRange{}})

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

Parameters

clang::ASTContext& Ctx
llvm::StringRef Name
const clang::AttributeCommonInfo& CommonInfo = {clang::SourceRange{}}

static clang::SectionAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    llvm::StringRef Name,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax,
    SectionAttr::Spelling S =
        static_cast<clang::SectionAttr::Spelling>(
            SpellingNotCalculated))

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

Parameters

clang::ASTContext& Ctx
llvm::StringRef Name
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax
SectionAttr::Spelling S = static_cast<clang::SectionAttr::Spelling>(SpellingNotCalculated)

SectionAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    llvm::StringRef Name)

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

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
llvm::StringRef Name

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

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

Parameters

const clang::Attr* A

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

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

Parameters

clang::ASTContext& C

llvm::StringRef getName() const

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

unsigned int getNameLength() const

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

clang::SectionAttr::Spelling getSemanticSpelling()
    const

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

const char* getSpelling() const

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

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

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

Parameters

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

void setName(clang::ASTContext& C,
             llvm::StringRef S)

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

Parameters

clang::ASTContext& C
llvm::StringRef S