class DeprecatedAttr

Declaration

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

Description

Attr - This represents one attribute.

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

Inherits from: InheritableAttr

Member Variables

private unsigned int messageLength
private char* message
private unsigned int replacementLength
private char* replacement

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::DeprecatedAttr * Create(clang::ASTContext & Ctx, llvm::StringRef Message, llvm::StringRef Replacement, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::DeprecatedAttr * Create(clang::ASTContext & Ctx, llvm::StringRef Message, llvm::StringRef Replacement, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::DeprecatedAttr * CreateImplicit(clang::ASTContext & Ctx, llvm::StringRef Message, llvm::StringRef Replacement, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public static clang::DeprecatedAttr * CreateImplicit(clang::ASTContext & Ctx, llvm::StringRef Message, llvm::StringRef Replacement, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public DeprecatedAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, llvm::StringRef Message, llvm::StringRef Replacement)
  • public DeprecatedAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo)
  • public static bool classof(const clang::Attr * A)
  • public clang::DeprecatedAttr * clone(clang::ASTContext & C) const
  • public llvm::StringRef getMessage() const
  • public unsigned int getMessageLength() const
  • public llvm::StringRef getReplacement() const
  • public unsigned int getReplacementLength() const
  • public const char * getSpelling() const
  • public void printPretty(llvm::raw_ostream & OS, const clang::PrintingPolicy & Policy) const
  • public void setMessage(clang::ASTContext & C, llvm::StringRef S)
  • public void setReplacement(clang::ASTContext & C, llvm::StringRef S)

Inherited from InheritableAttr:

Inherited from Attr:

Inherited from AttributeCommonInfo:

Methods

static clang::DeprecatedAttr* Create(
    clang::ASTContext& Ctx,
    llvm::StringRef Message,
    llvm::StringRef Replacement,
    const clang::AttributeCommonInfo& CommonInfo)

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

Parameters

clang::ASTContext& Ctx
llvm::StringRef Message
llvm::StringRef Replacement
const clang::AttributeCommonInfo& CommonInfo

static clang::DeprecatedAttr* Create(
    clang::ASTContext& Ctx,
    llvm::StringRef Message,
    llvm::StringRef Replacement,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
llvm::StringRef Message
llvm::StringRef Replacement
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

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

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

Parameters

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

static clang::DeprecatedAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    llvm::StringRef Message,
    llvm::StringRef Replacement,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
llvm::StringRef Message
llvm::StringRef Replacement
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

DeprecatedAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    llvm::StringRef Message,
    llvm::StringRef Replacement)

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

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
llvm::StringRef Message
llvm::StringRef Replacement

DeprecatedAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo)

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

Parameters

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

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

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

Parameters

const clang::Attr* A

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

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

Parameters

clang::ASTContext& C

llvm::StringRef getMessage() const

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

unsigned int getMessageLength() const

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

llvm::StringRef getReplacement() const

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

unsigned int getReplacementLength() const

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

const char* getSpelling() const

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

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

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

Parameters

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

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

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

Parameters

clang::ASTContext& C
llvm::StringRef S

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

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

Parameters

clang::ASTContext& C
llvm::StringRef S