class Attr
Declaration
class Attr : public AttributeCommonInfo { /* full declaration omitted */ };
Description
Attr - This represents one attribute.
Declared at: clang/include/clang/AST/Attr.h:41
Inherits from: AttributeCommonInfo
Member Variables
- private unsigned int AttrKind
- protected unsigned int Inherited
- An index into the spelling list of an attribute defined in Attr.td file.
- protected unsigned int IsPackExpansion
- protected unsigned int Implicit
- protected unsigned int IsLateParsed
- protected unsigned int InheritEvenIfAlreadyPresent
Inherited from AttributeCommonInfo:
Method Overview
- protected Attr(clang::ASTContext & Context, const clang::AttributeCommonInfo & CommonInfo, attr::Kind AK, bool IsLateParsed)
- public clang::Attr * clone(clang::ASTContext & C) const
- public static llvm::StringRef getDocumentation(attr::Kind)
- public attr::Kind getKind() const
- public clang::SourceLocation getLocation() const
- public const char * getSpelling() const
- public unsigned int getSpellingListIndex() const
- public bool isImplicit() const
- public bool isInherited() const
- public bool isLateParsed() const
- public bool isPackExpansion() const
- public void printPretty(llvm::raw_ostream & OS, const clang::PrintingPolicy & Policy) const
- public void setImplicit(bool I)
- public void setPackExpansion(bool PE)
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
¶Attr(clang::ASTContext& Context,
const clang::AttributeCommonInfo& CommonInfo,
attr::Kind AK,
bool IsLateParsed)
Attr(clang::ASTContext& Context,
const clang::AttributeCommonInfo& CommonInfo,
attr::Kind AK,
bool IsLateParsed)
Declared at: clang/include/clang/AST/Attr.h:74
Parameters
- clang::ASTContext& Context
- const clang::AttributeCommonInfo& CommonInfo
- attr::Kind AK
- bool IsLateParsed
¶clang::Attr* clone(clang::ASTContext& C) const
clang::Attr* clone(clang::ASTContext& C) const
Declared at: clang/include/clang/AST/Attr.h:101
Parameters
¶static llvm::StringRef getDocumentation(
attr::Kind)
static llvm::StringRef getDocumentation(
attr::Kind)
Declared at: clang/include/clang/AST/Attr.h:108
Parameters
- attr::Kind
¶attr::Kind getKind() const
attr::Kind getKind() const
Declared at: clang/include/clang/AST/Attr.h:81
¶clang::SourceLocation getLocation() const
clang::SourceLocation getLocation() const
Declared at: clang/include/clang/AST/Attr.h:88
¶const char* getSpelling() const
const char* getSpelling() const
Declared at: clang/include/clang/AST/Attr.h:86
¶unsigned int getSpellingListIndex() const
unsigned int getSpellingListIndex() const
Declared at: clang/include/clang/AST/Attr.h:83
¶bool isImplicit() const
bool isImplicit() const
Description
Returns true if the attribute has been implicitly created instead of explicitly written by the user.
Declared at: clang/include/clang/AST/Attr.h:94
¶bool isInherited() const
bool isInherited() const
Declared at: clang/include/clang/AST/Attr.h:90
¶bool isLateParsed() const
bool isLateParsed() const
Declared at: clang/include/clang/AST/Attr.h:103
¶bool isPackExpansion() const
bool isPackExpansion() const
Declared at: clang/include/clang/AST/Attr.h:98
¶void printPretty(
llvm::raw_ostream& OS,
const clang::PrintingPolicy& Policy) const
void printPretty(
llvm::raw_ostream& OS,
const clang::PrintingPolicy& Policy) const
Declared at: clang/include/clang/AST/Attr.h:106
Parameters
- llvm::raw_ostream& OS
- const clang::PrintingPolicy& Policy
¶void setImplicit(bool I)
void setImplicit(bool I)
Declared at: clang/include/clang/AST/Attr.h:95
Parameters
- bool I
¶void setPackExpansion(bool PE)
void setPackExpansion(bool PE)
Declared at: clang/include/clang/AST/Attr.h:97
Parameters
- bool PE