class BlocksAttr
Declaration
class BlocksAttr : public InheritableAttr { /* full declaration omitted */ };
Description
Attr - This represents one attribute.
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1962
Inherits from: InheritableAttr
Member Variables
- private clang::BlocksAttr::BlockType type
Inherited from Attr:
- protected Inherited
- protected IsPackExpansion
- protected Implicit
- protected IsLateParsed
- protected InheritEvenIfAlreadyPresent
Inherited from AttributeCommonInfo:
Method Overview
- public BlocksAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, clang::BlocksAttr::BlockType Type)
- public static const char * ConvertBlockTypeToStr(clang::BlocksAttr::BlockType Val)
- public static bool ConvertStrToBlockType(llvm::StringRef Val, clang::BlocksAttr::BlockType & Out)
- public static clang::BlocksAttr * Create(clang::ASTContext & Ctx, clang::BlocksAttr::BlockType Type, const clang::AttributeCommonInfo & CommonInfo)
- public static clang::BlocksAttr * Create(clang::ASTContext & Ctx, clang::BlocksAttr::BlockType Type, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
- public static clang::BlocksAttr * CreateImplicit(clang::ASTContext & Ctx, clang::BlocksAttr::BlockType Type, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
- public static clang::BlocksAttr * CreateImplicit(clang::ASTContext & Ctx, clang::BlocksAttr::BlockType Type, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
- public static bool classof(const clang::Attr * A)
- public clang::BlocksAttr * clone(clang::ASTContext & C) const
- public const char * getSpelling() const
- public clang::BlocksAttr::BlockType getType() const
- public void printPretty(llvm::raw_ostream & OS, const clang::PrintingPolicy & Policy) const
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
¶BlocksAttr(
clang::ASTContext& Ctx,
const clang::AttributeCommonInfo& CommonInfo,
clang::BlocksAttr::BlockType Type)
BlocksAttr(
clang::ASTContext& Ctx,
const clang::AttributeCommonInfo& CommonInfo,
clang::BlocksAttr::BlockType Type)
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1986
Parameters
- clang::ASTContext& Ctx
- const clang::AttributeCommonInfo& CommonInfo
- clang::BlocksAttr::BlockType Type
¶static const char* ConvertBlockTypeToStr(
clang::BlocksAttr::BlockType Val)
static const char* ConvertBlockTypeToStr(
clang::BlocksAttr::BlockType Val)
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1999
Parameters
- clang::BlocksAttr::BlockType Val
¶static bool ConvertStrToBlockType(
llvm::StringRef Val,
clang::BlocksAttr::BlockType& Out)
static bool ConvertStrToBlockType(
llvm::StringRef Val,
clang::BlocksAttr::BlockType& Out)
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1998
Parameters
- llvm::StringRef Val
- clang::BlocksAttr::BlockType& Out
¶static clang::BlocksAttr* Create(
clang::ASTContext& Ctx,
clang::BlocksAttr::BlockType Type,
const clang::AttributeCommonInfo& CommonInfo)
static clang::BlocksAttr* Create(
clang::ASTContext& Ctx,
clang::BlocksAttr::BlockType Type,
const clang::AttributeCommonInfo& CommonInfo)
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1981
Parameters
- clang::ASTContext& Ctx
- clang::BlocksAttr::BlockType Type
- const clang::AttributeCommonInfo& CommonInfo
¶static clang::BlocksAttr* Create(
clang::ASTContext& Ctx,
clang::BlocksAttr::BlockType Type,
clang::SourceRange Range,
AttributeCommonInfo::Syntax Syntax)
static clang::BlocksAttr* Create(
clang::ASTContext& Ctx,
clang::BlocksAttr::BlockType Type,
clang::SourceRange Range,
AttributeCommonInfo::Syntax Syntax)
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1983
Parameters
- clang::ASTContext& Ctx
- clang::BlocksAttr::BlockType Type
- clang::SourceRange Range
- AttributeCommonInfo::Syntax Syntax
¶static clang::BlocksAttr* CreateImplicit(
clang::ASTContext& Ctx,
clang::BlocksAttr::BlockType Type,
const clang::AttributeCommonInfo& CommonInfo =
{clang::SourceRange{}})
static clang::BlocksAttr* CreateImplicit(
clang::ASTContext& Ctx,
clang::BlocksAttr::BlockType Type,
const clang::AttributeCommonInfo& CommonInfo =
{clang::SourceRange{}})
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1980
Parameters
- clang::ASTContext& Ctx
- clang::BlocksAttr::BlockType Type
- const clang::AttributeCommonInfo& CommonInfo = {clang::SourceRange{}}
¶static clang::BlocksAttr* CreateImplicit(
clang::ASTContext& Ctx,
clang::BlocksAttr::BlockType Type,
clang::SourceRange Range,
AttributeCommonInfo::Syntax Syntax)
static clang::BlocksAttr* CreateImplicit(
clang::ASTContext& Ctx,
clang::BlocksAttr::BlockType Type,
clang::SourceRange Range,
AttributeCommonInfo::Syntax Syntax)
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1982
Parameters
- clang::ASTContext& Ctx
- clang::BlocksAttr::BlockType Type
- clang::SourceRange Range
- AttributeCommonInfo::Syntax Syntax
¶static bool classof(const clang::Attr* A)
static bool classof(const clang::Attr* A)
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:2002
Parameters
- const clang::Attr* A
¶clang::BlocksAttr* clone(
clang::ASTContext& C) const
clang::BlocksAttr* clone(
clang::ASTContext& C) const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1990
Parameters
¶const char* getSpelling() const
const char* getSpelling() const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1993
¶clang::BlocksAttr::BlockType getType() const
clang::BlocksAttr::BlockType getType() const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1994
¶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:1991
Parameters
- llvm::raw_ostream& OS
- const clang::PrintingPolicy& Policy