class SwiftErrorAttr

Declaration

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

Description

Attr - This represents one attribute.

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

Inherits from: InheritableAttr

Member Variables

private clang::SwiftErrorAttr::ConventionKind convention

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

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

Parameters

clang::SwiftErrorAttr::ConventionKind Val

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

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

Parameters

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

static clang::SwiftErrorAttr* Create(
    clang::ASTContext& Ctx,
    clang::SwiftErrorAttr::ConventionKind
        Convention,
    const clang::AttributeCommonInfo& CommonInfo)

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

Parameters

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

static clang::SwiftErrorAttr* Create(
    clang::ASTContext& Ctx,
    clang::SwiftErrorAttr::ConventionKind
        Convention,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
clang::SwiftErrorAttr::ConventionKind Convention
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

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

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

Parameters

clang::ASTContext& Ctx
clang::SwiftErrorAttr::ConventionKind Convention
const clang::AttributeCommonInfo& CommonInfo = {clang::SourceRange{}}

static clang::SwiftErrorAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::SwiftErrorAttr::ConventionKind
        Convention,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
clang::SwiftErrorAttr::ConventionKind Convention
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

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

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

Parameters

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

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

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

Parameters

const clang::Attr* A

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

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

Parameters

clang::ASTContext& C

clang::SwiftErrorAttr::ConventionKind
getConvention() const

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

const char* getSpelling() const

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

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

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

Parameters

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