class ErrorAttr

Declaration

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

Description

Attr - This represents one attribute.

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

Inherits from: InheritableAttr

Member Variables

private unsigned int userDiagnosticLength
private char* userDiagnostic

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

Inherited from InheritableAttr:

Inherited from Attr:

Inherited from AttributeCommonInfo:

Methods

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

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

Parameters

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

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

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

Parameters

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

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

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

Parameters

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

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

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

Parameters

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

ErrorAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    llvm::StringRef UserDiagnostic)

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

Parameters

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

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

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

Parameters

const clang::Attr* A

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

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

Parameters

clang::ASTContext& C

clang::ErrorAttr::Spelling getSemanticSpelling()
    const

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

const char* getSpelling() const

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

llvm::StringRef getUserDiagnostic() const

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

unsigned int getUserDiagnosticLength() const

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

bool isError() const

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

bool isWarning() const

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

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

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

Parameters

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

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

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

Parameters

clang::ASTContext& C
llvm::StringRef S