class OwnershipAttr

Declaration

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

Description

Attr - This represents one attribute.

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

Inherits from: InheritableAttr

Member Variables

private clang::IdentifierInfo* module
private unsigned int args_Size
private clang::ParamIdx* args_

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::OwnershipAttr * Create(clang::ASTContext & Ctx, clang::IdentifierInfo * Module, clang::ParamIdx * Args, unsigned int ArgsSize, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::OwnershipAttr * Create(clang::ASTContext & Ctx, clang::IdentifierInfo * Module, clang::ParamIdx * Args, unsigned int ArgsSize, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax, OwnershipAttr::Spelling S = static_cast<clang::OwnershipAttr::Spelling>(SpellingNotCalculated))
  • public static clang::OwnershipAttr * CreateImplicit(clang::ASTContext & Ctx, clang::IdentifierInfo * Module, clang::ParamIdx * Args, unsigned int ArgsSize, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax, OwnershipAttr::Spelling S = static_cast<clang::OwnershipAttr::Spelling>(SpellingNotCalculated))
  • public static clang::OwnershipAttr * CreateImplicit(clang::ASTContext & Ctx, clang::IdentifierInfo * Module, clang::ParamIdx * Args, unsigned int ArgsSize, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public OwnershipAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, clang::IdentifierInfo * Module, clang::ParamIdx * Args, unsigned int ArgsSize)
  • public OwnershipAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, clang::IdentifierInfo * Module)
  • public llvm::iterator_range<args_iterator> args() const
  • public clang::OwnershipAttr::args_iterator args_begin() const
  • public clang::OwnershipAttr::args_iterator args_end() const
  • public unsigned int args_size() const
  • public static bool classof(const clang::Attr * A)
  • public clang::OwnershipAttr * clone(clang::ASTContext & C) const
  • public clang::IdentifierInfo * getModule() const
  • public clang::OwnershipAttr::OwnershipKind getOwnKind() const
  • public clang::OwnershipAttr::Spelling getSemanticSpelling() const
  • public const char * getSpelling() const
  • public bool isHolds() const
  • public bool isReturns() const
  • public bool isTakes() 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::OwnershipAttr* Create(
    clang::ASTContext& Ctx,
    clang::IdentifierInfo* Module,
    clang::ParamIdx* Args,
    unsigned int ArgsSize,
    const clang::AttributeCommonInfo& CommonInfo)

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

Parameters

clang::ASTContext& Ctx
clang::IdentifierInfo* Module
clang::ParamIdx* Args
unsigned int ArgsSize
const clang::AttributeCommonInfo& CommonInfo

static clang::OwnershipAttr* Create(
    clang::ASTContext& Ctx,
    clang::IdentifierInfo* Module,
    clang::ParamIdx* Args,
    unsigned int ArgsSize,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax,
    OwnershipAttr::Spelling S = static_cast<
        clang::OwnershipAttr::Spelling>(
        SpellingNotCalculated))

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

Parameters

clang::ASTContext& Ctx
clang::IdentifierInfo* Module
clang::ParamIdx* Args
unsigned int ArgsSize
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax
OwnershipAttr::Spelling S = static_cast<clang::OwnershipAttr::Spelling>(SpellingNotCalculated)

static clang::OwnershipAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::IdentifierInfo* Module,
    clang::ParamIdx* Args,
    unsigned int ArgsSize,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax,
    OwnershipAttr::Spelling S = static_cast<
        clang::OwnershipAttr::Spelling>(
        SpellingNotCalculated))

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

Parameters

clang::ASTContext& Ctx
clang::IdentifierInfo* Module
clang::ParamIdx* Args
unsigned int ArgsSize
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax
OwnershipAttr::Spelling S = static_cast<clang::OwnershipAttr::Spelling>(SpellingNotCalculated)

static clang::OwnershipAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::IdentifierInfo* Module,
    clang::ParamIdx* Args,
    unsigned int ArgsSize,
    const clang::AttributeCommonInfo& CommonInfo =
        {clang::SourceRange{}})

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

Parameters

clang::ASTContext& Ctx
clang::IdentifierInfo* Module
clang::ParamIdx* Args
unsigned int ArgsSize
const clang::AttributeCommonInfo& CommonInfo = {clang::SourceRange{}}

OwnershipAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    clang::IdentifierInfo* Module,
    clang::ParamIdx* Args,
    unsigned int ArgsSize)

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

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
clang::IdentifierInfo* Module
clang::ParamIdx* Args
unsigned int ArgsSize

OwnershipAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    clang::IdentifierInfo* Module)

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

Parameters

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

llvm::iterator_range<args_iterator> args() const

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

clang::OwnershipAttr::args_iterator args_begin()
    const

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

clang::OwnershipAttr::args_iterator args_end()
    const

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

unsigned int args_size() const

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

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

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

Parameters

const clang::Attr* A

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

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

Parameters

clang::ASTContext& C

clang::IdentifierInfo* getModule() const

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

clang::OwnershipAttr::OwnershipKind getOwnKind()
    const

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

clang::OwnershipAttr::Spelling
getSemanticSpelling() const

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

const char* getSpelling() const

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

bool isHolds() const

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

bool isReturns() const

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

bool isTakes() const

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

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

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

Parameters

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