class EnableIfAttr

Declaration

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

Description

Attr - This represents one attribute.

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

Inherits from: InheritableAttr

Member Variables

private clang::Expr* cond
private unsigned int messageLength
private char* message

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::EnableIfAttr * Create(clang::ASTContext & Ctx, clang::Expr * Cond, llvm::StringRef Message, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::EnableIfAttr * Create(clang::ASTContext & Ctx, clang::Expr * Cond, llvm::StringRef Message, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::EnableIfAttr * CreateImplicit(clang::ASTContext & Ctx, clang::Expr * Cond, llvm::StringRef Message, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public static clang::EnableIfAttr * CreateImplicit(clang::ASTContext & Ctx, clang::Expr * Cond, llvm::StringRef Message, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public EnableIfAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, clang::Expr * Cond, llvm::StringRef Message)
  • public static bool classof(const clang::Attr * A)
  • public clang::EnableIfAttr * clone(clang::ASTContext & C) const
  • public clang::Expr * getCond() const
  • public llvm::StringRef getMessage() const
  • public unsigned int getMessageLength() 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)

Inherited from InheritableAttr:

Inherited from Attr:

Inherited from AttributeCommonInfo:

Methods

static clang::EnableIfAttr* Create(
    clang::ASTContext& Ctx,
    clang::Expr* Cond,
    llvm::StringRef Message,
    const clang::AttributeCommonInfo& CommonInfo)

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

Parameters

clang::ASTContext& Ctx
clang::Expr* Cond
llvm::StringRef Message
const clang::AttributeCommonInfo& CommonInfo

static clang::EnableIfAttr* Create(
    clang::ASTContext& Ctx,
    clang::Expr* Cond,
    llvm::StringRef Message,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
clang::Expr* Cond
llvm::StringRef Message
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

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

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

Parameters

clang::ASTContext& Ctx
clang::Expr* Cond
llvm::StringRef Message
const clang::AttributeCommonInfo& CommonInfo = {clang::SourceRange{}}

static clang::EnableIfAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::Expr* Cond,
    llvm::StringRef Message,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
clang::Expr* Cond
llvm::StringRef Message
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

EnableIfAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    clang::Expr* Cond,
    llvm::StringRef Message)

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

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
clang::Expr* Cond
llvm::StringRef Message

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

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

Parameters

const clang::Attr* A

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

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

Parameters

clang::ASTContext& C

clang::Expr* getCond() const

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

llvm::StringRef getMessage() const

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

unsigned int getMessageLength() const

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

const char* getSpelling() const

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

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

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

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

Parameters

clang::ASTContext& C
llvm::StringRef S