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:
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:
- public clone
- public getDocumentation
- public getKind
- public getLocation
- public getSpelling
- public getSpellingListIndex
- public isImplicit
- public isInherited
- public isLateParsed
- public isPackExpansion
- public printPretty
- public setImplicit
- public setPackExpansion
Inherited from AttributeCommonInfo:
- public getAttrName
- public getAttributeSpellingListIndex
- public getLoc
- public getNormalizedFullName
- public getParsedKind
- public getParsedKind
- public getRange
- public getScopeLoc
- public getScopeName
- public getSyntax
- public hasScope
- public isAlignasAttribute
- protected isAttributeSpellingListCalculated
- public isC2xAttribute
- public isCXX11Attribute
- public isClangScope
- public isContextSensitiveKeywordAttribute
- public isDeclspecAttribute
- public isGNUAttribute
- public isGNUScope
- public isKeywordAttribute
- public isMicrosoftAttribute
- public isStandardAttributeSyntax
- public setAttributeSpellingListIndex
- public setRange
Methods
¶static clang::EnableIfAttr* Create(
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,
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)
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{}})
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)
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)
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)
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
clang::EnableIfAttr* clone(
clang::ASTContext& C) const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:3786
Parameters
¶clang::Expr* getCond() const
clang::Expr* getCond() const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:3790
¶llvm::StringRef getMessage() const
llvm::StringRef getMessage() const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:3794
¶unsigned int getMessageLength() const
unsigned int getMessageLength() const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:3797
¶const char* getSpelling() const
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
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)
void setMessage(clang::ASTContext& C,
llvm::StringRef S)
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:3800