class CleanupAttr

Declaration

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

Description

Attr - This represents one attribute.

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

Inherits from: InheritableAttr

Member Variables

private clang::FunctionDecl* functionDecl

Inherited from Attr:

protected Inherited
protected IsPackExpansion
protected Implicit
protected IsLateParsed
protected InheritEvenIfAlreadyPresent

Inherited from AttributeCommonInfo:

protected static SpellingNotCalculated = 15

Method Overview

  • public CleanupAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, clang::FunctionDecl * FunctionDecl)
  • public static clang::CleanupAttr * Create(clang::ASTContext & Ctx, clang::FunctionDecl * FunctionDecl, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::CleanupAttr * Create(clang::ASTContext & Ctx, clang::FunctionDecl * FunctionDecl, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::CleanupAttr * CreateImplicit(clang::ASTContext & Ctx, clang::FunctionDecl * FunctionDecl, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public static clang::CleanupAttr * CreateImplicit(clang::ASTContext & Ctx, clang::FunctionDecl * FunctionDecl, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static bool classof(const clang::Attr * A)
  • public clang::CleanupAttr * clone(clang::ASTContext & C) const
  • public clang::FunctionDecl * getFunctionDecl() const
  • public const char * getSpelling() const
  • public void printPretty(llvm::raw_ostream & OS, const clang::PrintingPolicy & Policy) const

Inherited from InheritableAttr:

Inherited from Attr:

Inherited from AttributeCommonInfo:

Methods

CleanupAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    clang::FunctionDecl* FunctionDecl)

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

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
clang::FunctionDecl* FunctionDecl

static clang::CleanupAttr* Create(
    clang::ASTContext& Ctx,
    clang::FunctionDecl* FunctionDecl,
    const clang::AttributeCommonInfo& CommonInfo)

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

Parameters

clang::ASTContext& Ctx
clang::FunctionDecl* FunctionDecl
const clang::AttributeCommonInfo& CommonInfo

static clang::CleanupAttr* Create(
    clang::ASTContext& Ctx,
    clang::FunctionDecl* FunctionDecl,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
clang::FunctionDecl* FunctionDecl
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

static clang::CleanupAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::FunctionDecl* FunctionDecl,
    const clang::AttributeCommonInfo& CommonInfo =
        {clang::SourceRange{}})

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

Parameters

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

static clang::CleanupAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::FunctionDecl* FunctionDecl,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
clang::FunctionDecl* FunctionDecl
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

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

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

Parameters

const clang::Attr* A

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

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

Parameters

clang::ASTContext& C

clang::FunctionDecl* getFunctionDecl() const

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

const char* getSpelling() const

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

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

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

Parameters

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