class DiagnoseIfAttr

Declaration

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

Description

Attr - This represents one attribute.

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

Inherits from: InheritableAttr

Member Variables

private clang::Expr* cond
private unsigned int messageLength
private char* message
private clang::DiagnoseIfAttr::DiagnosticType diagnosticType
private bool argDependent
private clang::NamedDecl* parent

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 * ConvertDiagnosticTypeToStr(clang::DiagnoseIfAttr::DiagnosticType Val)
  • public static bool ConvertStrToDiagnosticType(llvm::StringRef Val, clang::DiagnoseIfAttr::DiagnosticType & Out)
  • public static clang::DiagnoseIfAttr * Create(clang::ASTContext & Ctx, clang::Expr * Cond, llvm::StringRef Message, clang::DiagnoseIfAttr::DiagnosticType DiagnosticType, bool ArgDependent, clang::NamedDecl * Parent, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::DiagnoseIfAttr * Create(clang::ASTContext & Ctx, clang::Expr * Cond, llvm::StringRef Message, clang::DiagnoseIfAttr::DiagnosticType DiagnosticType, bool ArgDependent, clang::NamedDecl * Parent, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::DiagnoseIfAttr * Create(clang::ASTContext & Ctx, clang::Expr * Cond, llvm::StringRef Message, clang::DiagnoseIfAttr::DiagnosticType DiagnosticType, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::DiagnoseIfAttr * Create(clang::ASTContext & Ctx, clang::Expr * Cond, llvm::StringRef Message, clang::DiagnoseIfAttr::DiagnosticType DiagnosticType, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::DiagnoseIfAttr * CreateImplicit(clang::ASTContext & Ctx, clang::Expr * Cond, llvm::StringRef Message, clang::DiagnoseIfAttr::DiagnosticType DiagnosticType, bool ArgDependent, clang::NamedDecl * Parent, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::DiagnoseIfAttr * CreateImplicit(clang::ASTContext & Ctx, clang::Expr * Cond, llvm::StringRef Message, clang::DiagnoseIfAttr::DiagnosticType DiagnosticType, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public static clang::DiagnoseIfAttr * CreateImplicit(clang::ASTContext & Ctx, clang::Expr * Cond, llvm::StringRef Message, clang::DiagnoseIfAttr::DiagnosticType DiagnosticType, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::DiagnoseIfAttr * CreateImplicit(clang::ASTContext & Ctx, clang::Expr * Cond, llvm::StringRef Message, clang::DiagnoseIfAttr::DiagnosticType DiagnosticType, bool ArgDependent, clang::NamedDecl * Parent, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public DiagnoseIfAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, clang::Expr * Cond, llvm::StringRef Message, clang::DiagnoseIfAttr::DiagnosticType DiagnosticType, bool ArgDependent, clang::NamedDecl * Parent)
  • public DiagnoseIfAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, clang::Expr * Cond, llvm::StringRef Message, clang::DiagnoseIfAttr::DiagnosticType DiagnosticType)
  • public static bool classof(const clang::Attr * A)
  • public clang::DiagnoseIfAttr * clone(clang::ASTContext & C) const
  • public bool getArgDependent() const
  • public clang::Expr * getCond() const
  • public clang::DiagnoseIfAttr::DiagnosticType getDiagnosticType() const
  • public llvm::StringRef getMessage() const
  • public unsigned int getMessageLength() const
  • public clang::NamedDecl * getParent() const
  • public const char * getSpelling() const
  • public bool isError() const
  • public bool isWarning() 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 const char* ConvertDiagnosticTypeToStr(
    clang::DiagnoseIfAttr::DiagnosticType Val)

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

Parameters

clang::DiagnoseIfAttr::DiagnosticType Val

static bool ConvertStrToDiagnosticType(
    llvm::StringRef Val,
    clang::DiagnoseIfAttr::DiagnosticType& Out)

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

Parameters

llvm::StringRef Val
clang::DiagnoseIfAttr::DiagnosticType& Out

static clang::DiagnoseIfAttr* Create(
    clang::ASTContext& Ctx,
    clang::Expr* Cond,
    llvm::StringRef Message,
    clang::DiagnoseIfAttr::DiagnosticType
        DiagnosticType,
    bool ArgDependent,
    clang::NamedDecl* Parent,
    const clang::AttributeCommonInfo& CommonInfo)

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

Parameters

clang::ASTContext& Ctx
clang::Expr* Cond
llvm::StringRef Message
clang::DiagnoseIfAttr::DiagnosticType DiagnosticType
bool ArgDependent
clang::NamedDecl* Parent
const clang::AttributeCommonInfo& CommonInfo

static clang::DiagnoseIfAttr* Create(
    clang::ASTContext& Ctx,
    clang::Expr* Cond,
    llvm::StringRef Message,
    clang::DiagnoseIfAttr::DiagnosticType
        DiagnosticType,
    bool ArgDependent,
    clang::NamedDecl* Parent,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
clang::Expr* Cond
llvm::StringRef Message
clang::DiagnoseIfAttr::DiagnosticType DiagnosticType
bool ArgDependent
clang::NamedDecl* Parent
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

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

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

Parameters

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

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

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

Parameters

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

static clang::DiagnoseIfAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::Expr* Cond,
    llvm::StringRef Message,
    clang::DiagnoseIfAttr::DiagnosticType
        DiagnosticType,
    bool ArgDependent,
    clang::NamedDecl* Parent,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
clang::Expr* Cond
llvm::StringRef Message
clang::DiagnoseIfAttr::DiagnosticType DiagnosticType
bool ArgDependent
clang::NamedDecl* Parent
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

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

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

Parameters

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

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

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

Parameters

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

static clang::DiagnoseIfAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::Expr* Cond,
    llvm::StringRef Message,
    clang::DiagnoseIfAttr::DiagnosticType
        DiagnosticType,
    bool ArgDependent,
    clang::NamedDecl* Parent,
    const clang::AttributeCommonInfo& CommonInfo =
        {clang::SourceRange{}})

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

Parameters

clang::ASTContext& Ctx
clang::Expr* Cond
llvm::StringRef Message
clang::DiagnoseIfAttr::DiagnosticType DiagnosticType
bool ArgDependent
clang::NamedDecl* Parent
const clang::AttributeCommonInfo& CommonInfo = {clang::SourceRange{}}

DiagnoseIfAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    clang::Expr* Cond,
    llvm::StringRef Message,
    clang::DiagnoseIfAttr::DiagnosticType
        DiagnosticType,
    bool ArgDependent,
    clang::NamedDecl* Parent)

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

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
clang::Expr* Cond
llvm::StringRef Message
clang::DiagnoseIfAttr::DiagnosticType DiagnosticType
bool ArgDependent
clang::NamedDecl* Parent

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

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

Parameters

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

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

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

Parameters

const clang::Attr* A

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

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

Parameters

clang::ASTContext& C

bool getArgDependent() const

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

clang::Expr* getCond() const

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

clang::DiagnoseIfAttr::DiagnosticType
getDiagnosticType() const

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

llvm::StringRef getMessage() const

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

unsigned int getMessageLength() const

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

clang::NamedDecl* getParent() const

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

const char* getSpelling() const

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

bool isError() const

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

bool isWarning() const

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

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

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

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

Parameters

clang::ASTContext& C
llvm::StringRef S