class UnusedAttr

Declaration

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

Description

Attr - This represents one attribute.

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

Inherits from: InheritableAttr

Member Variables

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::UnusedAttr * Create(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::UnusedAttr * Create(clang::ASTContext & Ctx, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax, UnusedAttr::Spelling S = static_cast<clang::UnusedAttr::Spelling>(SpellingNotCalculated))
  • public static clang::UnusedAttr * CreateImplicit(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public static clang::UnusedAttr * CreateImplicit(clang::ASTContext & Ctx, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax, UnusedAttr::Spelling S = static_cast<clang::UnusedAttr::Spelling>(SpellingNotCalculated))
  • public UnusedAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo)
  • public static bool classof(const clang::Attr * A)
  • public clang::UnusedAttr * clone(clang::ASTContext & C) const
  • public clang::UnusedAttr::Spelling getSemanticSpelling() 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 clang::UnusedAttr* Create(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo)

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

Parameters

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

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

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

Parameters

clang::ASTContext& Ctx
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax
UnusedAttr::Spelling S = static_cast<clang::UnusedAttr::Spelling>(SpellingNotCalculated)

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

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

Parameters

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

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

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

Parameters

clang::ASTContext& Ctx
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax
UnusedAttr::Spelling S = static_cast<clang::UnusedAttr::Spelling>(SpellingNotCalculated)

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

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

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:12023

Parameters

const clang::Attr* A

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

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

Parameters

clang::ASTContext& C

clang::UnusedAttr::Spelling getSemanticSpelling()
    const

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

const char* getSpelling() const

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

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

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

Parameters

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