class SwiftAsyncErrorAttr

Declaration

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

Description

Attr - This represents one attribute.

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

Inherits from: InheritableAttr

Member Variables

private clang::SwiftAsyncErrorAttr::ConventionKind convention
private unsigned int handlerParamIdx

Inherited from Attr:

protected Inherited
protected IsPackExpansion
protected Implicit
protected IsLateParsed
protected InheritEvenIfAlreadyPresent

Inherited from AttributeCommonInfo:

protected static SpellingNotCalculated = 15

Method Overview

  • public static const char * ConvertConventionKindToStr(clang::SwiftAsyncErrorAttr::ConventionKind Val)
  • public static bool ConvertStrToConventionKind(llvm::StringRef Val, clang::SwiftAsyncErrorAttr::ConventionKind & Out)
  • public static clang::SwiftAsyncErrorAttr * Create(clang::ASTContext & Ctx, clang::SwiftAsyncErrorAttr::ConventionKind Convention, unsigned int HandlerParamIdx, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::SwiftAsyncErrorAttr * Create(clang::ASTContext & Ctx, clang::SwiftAsyncErrorAttr::ConventionKind Convention, unsigned int HandlerParamIdx, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::SwiftAsyncErrorAttr * CreateImplicit(clang::ASTContext & Ctx, clang::SwiftAsyncErrorAttr::ConventionKind Convention, unsigned int HandlerParamIdx, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public static clang::SwiftAsyncErrorAttr * CreateImplicit(clang::ASTContext & Ctx, clang::SwiftAsyncErrorAttr::ConventionKind Convention, unsigned int HandlerParamIdx, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public SwiftAsyncErrorAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, clang::SwiftAsyncErrorAttr::ConventionKind Convention, unsigned int HandlerParamIdx)
  • public SwiftAsyncErrorAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, clang::SwiftAsyncErrorAttr::ConventionKind Convention)
  • public static bool classof(const clang::Attr * A)
  • public clang::SwiftAsyncErrorAttr * clone(clang::ASTContext & C) const
  • public clang::SwiftAsyncErrorAttr::ConventionKind getConvention() const
  • public unsigned int getHandlerParamIdx() 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

static const char* ConvertConventionKindToStr(
    clang::SwiftAsyncErrorAttr::ConventionKind
        Val)

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

Parameters

clang::SwiftAsyncErrorAttr::ConventionKind Val

static bool ConvertStrToConventionKind(
    llvm::StringRef Val,
    clang::SwiftAsyncErrorAttr::ConventionKind&
        Out)

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

Parameters

llvm::StringRef Val
clang::SwiftAsyncErrorAttr::ConventionKind& Out

static clang::SwiftAsyncErrorAttr* Create(
    clang::ASTContext& Ctx,
    clang::SwiftAsyncErrorAttr::ConventionKind
        Convention,
    unsigned int HandlerParamIdx,
    const clang::AttributeCommonInfo& CommonInfo)

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

Parameters

clang::ASTContext& Ctx
clang::SwiftAsyncErrorAttr::ConventionKind Convention
unsigned int HandlerParamIdx
const clang::AttributeCommonInfo& CommonInfo

static clang::SwiftAsyncErrorAttr* Create(
    clang::ASTContext& Ctx,
    clang::SwiftAsyncErrorAttr::ConventionKind
        Convention,
    unsigned int HandlerParamIdx,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
clang::SwiftAsyncErrorAttr::ConventionKind Convention
unsigned int HandlerParamIdx
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

static clang::SwiftAsyncErrorAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::SwiftAsyncErrorAttr::ConventionKind
        Convention,
    unsigned int HandlerParamIdx,
    const clang::AttributeCommonInfo& CommonInfo =
        {clang::SourceRange{}})

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

Parameters

clang::ASTContext& Ctx
clang::SwiftAsyncErrorAttr::ConventionKind Convention
unsigned int HandlerParamIdx
const clang::AttributeCommonInfo& CommonInfo = {clang::SourceRange{}}

static clang::SwiftAsyncErrorAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::SwiftAsyncErrorAttr::ConventionKind
        Convention,
    unsigned int HandlerParamIdx,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
clang::SwiftAsyncErrorAttr::ConventionKind Convention
unsigned int HandlerParamIdx
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

SwiftAsyncErrorAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    clang::SwiftAsyncErrorAttr::ConventionKind
        Convention,
    unsigned int HandlerParamIdx)

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

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
clang::SwiftAsyncErrorAttr::ConventionKind Convention
unsigned int HandlerParamIdx

SwiftAsyncErrorAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    clang::SwiftAsyncErrorAttr::ConventionKind
        Convention)

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

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
clang::SwiftAsyncErrorAttr::ConventionKind Convention

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

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

Parameters

const clang::Attr* A

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

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

Parameters

clang::ASTContext& C

clang::SwiftAsyncErrorAttr::ConventionKind
getConvention() const

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

unsigned int getHandlerParamIdx() const

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

const char* getSpelling() const

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

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

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

Parameters

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