class AttributeCommonInfo
Declaration
class AttributeCommonInfo { /* full declaration omitted */ };Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:22
Member Variables
- private const clang::IdentifierInfo* AttrName = nullptr
- private const clang::IdentifierInfo* ScopeName = nullptr
- private clang::SourceRange AttrRange
- private const clang::SourceLocation ScopeLoc
- private unsigned int AttrKind
- private unsigned int SyntaxUsed
- Corresponds to the Syntax enum.
- private unsigned int SpellingIndex
- protected static const unsigned int SpellingNotCalculated = 15
Method Overview
- public AttributeCommonInfo(clang::SourceLocation AttrLoc)
- public AttributeCommonInfo(const clang::IdentifierInfo * AttrName, const clang::IdentifierInfo * ScopeName, clang::SourceRange AttrRange, clang::SourceLocation ScopeLoc, clang::AttributeCommonInfo::Syntax SyntaxUsed)
- public AttributeCommonInfo(const clang::IdentifierInfo * AttrName, const clang::IdentifierInfo * ScopeName, clang::SourceRange AttrRange, clang::SourceLocation ScopeLoc, clang::AttributeCommonInfo::Kind AttrKind, clang::AttributeCommonInfo::Syntax SyntaxUsed)
- public AttributeCommonInfo(const clang::IdentifierInfo * AttrName, const clang::IdentifierInfo * ScopeName, clang::SourceRange AttrRange, clang::SourceLocation ScopeLoc, clang::AttributeCommonInfo::Kind AttrKind, clang::AttributeCommonInfo::Syntax SyntaxUsed, unsigned int Spelling)
- public AttributeCommonInfo(const clang::IdentifierInfo * AttrName, clang::SourceRange AttrRange, clang::AttributeCommonInfo::Syntax SyntaxUsed)
- public AttributeCommonInfo(clang::SourceRange AttrRange, clang::AttributeCommonInfo::Kind K, clang::AttributeCommonInfo::Syntax SyntaxUsed)
- public AttributeCommonInfo(clang::SourceRange AttrRange, clang::AttributeCommonInfo::Kind K, clang::AttributeCommonInfo::Syntax SyntaxUsed, unsigned int Spelling)
- public AttributeCommonInfo(clang::AttributeCommonInfo &&)
- public AttributeCommonInfo(const clang::AttributeCommonInfo &)
- public AttributeCommonInfo(clang::SourceRange AttrRange)
- private unsigned int calculateAttributeSpellingListIndex() const
- public const clang::IdentifierInfo * getAttrName() const
- public unsigned int getAttributeSpellingListIndex() const
- private unsigned int getAttributeSpellingListIndexRaw() const
- public clang::SourceLocation getLoc() const
- public std::string getNormalizedFullName() const
- public static clang::AttributeCommonInfo::Kind getParsedKind(const clang::IdentifierInfo * Name, const clang::IdentifierInfo * Scope, clang::AttributeCommonInfo::Syntax SyntaxUsed)
- public clang::AttributeCommonInfo::Kind getParsedKind() const
- public clang::SourceRange getRange() const
- public clang::SourceLocation getScopeLoc() const
- public const clang::IdentifierInfo * getScopeName() const
- public clang::AttributeCommonInfo::Syntax getSyntax() const
- public bool hasScope() const
- public bool isAlignasAttribute() const
- protected bool isAttributeSpellingListCalculated() const
- public bool isC2xAttribute() const
- public bool isCXX11Attribute() const
- public bool isClangScope() const
- public bool isContextSensitiveKeywordAttribute() const
- public bool isDeclspecAttribute() const
- public bool isGNUAttribute() const
- public bool isGNUScope() const
- public bool isKeywordAttribute() const
- public bool isMicrosoftAttribute() const
- public bool isStandardAttributeSyntax() const
- public void setAttributeSpellingListIndex(unsigned int V)
- public void setRange(clang::SourceRange R)
Methods
¶AttributeCommonInfo(clang::SourceLocation AttrLoc)
AttributeCommonInfo(clang::SourceLocation AttrLoc)Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:83
Parameters
- clang::SourceLocation AttrLoc
¶AttributeCommonInfo(
const clang::IdentifierInfo* AttrName,
const clang::IdentifierInfo* ScopeName,
clang::SourceRange AttrRange,
clang::SourceLocation ScopeLoc,
clang::AttributeCommonInfo::Syntax SyntaxUsed)
AttributeCommonInfo(
const clang::IdentifierInfo* AttrName,
const clang::IdentifierInfo* ScopeName,
clang::SourceRange AttrRange,
clang::SourceLocation ScopeLoc,
clang::AttributeCommonInfo::Syntax SyntaxUsed)Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:87
Parameters
- const clang::IdentifierInfo* AttrName
- const clang::IdentifierInfo* ScopeName
- clang::SourceRange AttrRange
- clang::SourceLocation ScopeLoc
- clang::AttributeCommonInfo::Syntax SyntaxUsed
¶AttributeCommonInfo(
const clang::IdentifierInfo* AttrName,
const clang::IdentifierInfo* ScopeName,
clang::SourceRange AttrRange,
clang::SourceLocation ScopeLoc,
clang::AttributeCommonInfo::Kind AttrKind,
clang::AttributeCommonInfo::Syntax SyntaxUsed)
AttributeCommonInfo(
const clang::IdentifierInfo* AttrName,
const clang::IdentifierInfo* ScopeName,
clang::SourceRange AttrRange,
clang::SourceLocation ScopeLoc,
clang::AttributeCommonInfo::Kind AttrKind,
clang::AttributeCommonInfo::Syntax SyntaxUsed)Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:95
Parameters
- const clang::IdentifierInfo* AttrName
- const clang::IdentifierInfo* ScopeName
- clang::SourceRange AttrRange
- clang::SourceLocation ScopeLoc
- clang::AttributeCommonInfo::Kind AttrKind
- clang::AttributeCommonInfo::Syntax SyntaxUsed
¶AttributeCommonInfo(
const clang::IdentifierInfo* AttrName,
const clang::IdentifierInfo* ScopeName,
clang::SourceRange AttrRange,
clang::SourceLocation ScopeLoc,
clang::AttributeCommonInfo::Kind AttrKind,
clang::AttributeCommonInfo::Syntax SyntaxUsed,
unsigned int Spelling)
AttributeCommonInfo(
const clang::IdentifierInfo* AttrName,
const clang::IdentifierInfo* ScopeName,
clang::SourceRange AttrRange,
clang::SourceLocation ScopeLoc,
clang::AttributeCommonInfo::Kind AttrKind,
clang::AttributeCommonInfo::Syntax SyntaxUsed,
unsigned int Spelling)Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:102
Parameters
- const clang::IdentifierInfo* AttrName
- const clang::IdentifierInfo* ScopeName
- clang::SourceRange AttrRange
- clang::SourceLocation ScopeLoc
- clang::AttributeCommonInfo::Kind AttrKind
- clang::AttributeCommonInfo::Syntax SyntaxUsed
- unsigned int Spelling
¶AttributeCommonInfo(
const clang::IdentifierInfo* AttrName,
clang::SourceRange AttrRange,
clang::AttributeCommonInfo::Syntax SyntaxUsed)
AttributeCommonInfo(
const clang::IdentifierInfo* AttrName,
clang::SourceRange AttrRange,
clang::AttributeCommonInfo::Syntax SyntaxUsed)Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:110
Parameters
- const clang::IdentifierInfo* AttrName
- clang::SourceRange AttrRange
- clang::AttributeCommonInfo::Syntax SyntaxUsed
¶AttributeCommonInfo(
clang::SourceRange AttrRange,
clang::AttributeCommonInfo::Kind K,
clang::AttributeCommonInfo::Syntax SyntaxUsed)
AttributeCommonInfo(
clang::SourceRange AttrRange,
clang::AttributeCommonInfo::Kind K,
clang::AttributeCommonInfo::Syntax SyntaxUsed)Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:116
Parameters
- clang::SourceRange AttrRange
- clang::AttributeCommonInfo::Kind K
- clang::AttributeCommonInfo::Syntax SyntaxUsed
¶AttributeCommonInfo(
clang::SourceRange AttrRange,
clang::AttributeCommonInfo::Kind K,
clang::AttributeCommonInfo::Syntax SyntaxUsed,
unsigned int Spelling)
AttributeCommonInfo(
clang::SourceRange AttrRange,
clang::AttributeCommonInfo::Kind K,
clang::AttributeCommonInfo::Syntax SyntaxUsed,
unsigned int Spelling)Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:121
Parameters
- clang::SourceRange AttrRange
- clang::AttributeCommonInfo::Kind K
- clang::AttributeCommonInfo::Syntax SyntaxUsed
- unsigned int Spelling
¶AttributeCommonInfo(clang::AttributeCommonInfo&&)
AttributeCommonInfo(clang::AttributeCommonInfo&&)Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:126
Parameters
¶AttributeCommonInfo(
const clang::AttributeCommonInfo&)
AttributeCommonInfo(
const clang::AttributeCommonInfo&)Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:127
Parameters
- const clang::AttributeCommonInfo&
¶AttributeCommonInfo(clang::SourceRange AttrRange)
AttributeCommonInfo(clang::SourceRange AttrRange)Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:79
Parameters
- clang::SourceRange AttrRange
¶unsigned int calculateAttributeSpellingListIndex()
const
unsigned int calculateAttributeSpellingListIndex()
constDescription
Get an index into the attribute spelling list defined in Attr.td. This index is used by an attribute to pretty print itself.
Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:209
¶const clang::IdentifierInfo* getAttrName() const
const clang::IdentifierInfo* getAttrName() constDeclared at: clang/include/clang/Basic/AttributeCommonInfo.h:131
¶unsigned int getAttributeSpellingListIndex() const
unsigned int getAttributeSpellingListIndex() constDeclared at: clang/include/clang/Basic/AttributeCommonInfo.h:193
¶unsigned int getAttributeSpellingListIndexRaw()
const
unsigned int getAttributeSpellingListIndexRaw()
constDeclared at: clang/include/clang/Basic/AttributeCommonInfo.h:213
¶clang::SourceLocation getLoc() const
clang::SourceLocation getLoc() constDeclared at: clang/include/clang/Basic/AttributeCommonInfo.h:132
¶std::string getNormalizedFullName() const
std::string getNormalizedFullName() constDescription
Gets the normalized full name, which consists of both scope and name and with surrounding underscores removed as appropriate (e.g. __gnu__::__attr__ will be normalized to gnu::attr).
Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:143
¶static clang::AttributeCommonInfo::Kind
getParsedKind(
const clang::IdentifierInfo* Name,
const clang::IdentifierInfo* Scope,
clang::AttributeCommonInfo::Syntax SyntaxUsed)
static clang::AttributeCommonInfo::Kind
getParsedKind(
const clang::IdentifierInfo* Name,
const clang::IdentifierInfo* Scope,
clang::AttributeCommonInfo::Syntax SyntaxUsed)Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:202
Parameters
- const clang::IdentifierInfo* Name
- const clang::IdentifierInfo* Scope
- clang::AttributeCommonInfo::Syntax SyntaxUsed
¶clang::AttributeCommonInfo::Kind getParsedKind()
const
clang::AttributeCommonInfo::Kind getParsedKind()
constDeclared at: clang/include/clang/Basic/AttributeCommonInfo.h:129
¶clang::SourceRange getRange() const
clang::SourceRange getRange() constDeclared at: clang/include/clang/Basic/AttributeCommonInfo.h:133
¶clang::SourceLocation getScopeLoc() const
clang::SourceLocation getScopeLoc() constDeclared at: clang/include/clang/Basic/AttributeCommonInfo.h:138
¶const clang::IdentifierInfo* getScopeName() const
const clang::IdentifierInfo* getScopeName() constDeclared at: clang/include/clang/Basic/AttributeCommonInfo.h:137
¶clang::AttributeCommonInfo::Syntax getSyntax()
const
clang::AttributeCommonInfo::Syntax getSyntax()
constDeclared at: clang/include/clang/Basic/AttributeCommonInfo.h:130
¶bool hasScope() const
bool hasScope() constDeclared at: clang/include/clang/Basic/AttributeCommonInfo.h:136
¶bool isAlignasAttribute() const
bool isAlignasAttribute() constDeclared at: clang/include/clang/Basic/AttributeCommonInfo.h:151
¶bool isAttributeSpellingListCalculated() const
bool isAttributeSpellingListCalculated() constDeclared at: clang/include/clang/Basic/AttributeCommonInfo.h:216
¶bool isC2xAttribute() const
bool isC2xAttribute() constDeclared at: clang/include/clang/Basic/AttributeCommonInfo.h:175
¶bool isCXX11Attribute() const
bool isCXX11Attribute() constDeclared at: clang/include/clang/Basic/AttributeCommonInfo.h:171
¶bool isClangScope() const
bool isClangScope() constDeclared at: clang/include/clang/Basic/AttributeCommonInfo.h:149
¶bool isContextSensitiveKeywordAttribute() const
bool isContextSensitiveKeywordAttribute() constDeclared at: clang/include/clang/Basic/AttributeCommonInfo.h:189
¶bool isDeclspecAttribute() const
bool isDeclspecAttribute() constDeclared at: clang/include/clang/Basic/AttributeCommonInfo.h:145
¶bool isGNUAttribute() const
bool isGNUAttribute() constDeclared at: clang/include/clang/Basic/AttributeCommonInfo.h:183
¶bool isGNUScope() const
bool isGNUScope() constDeclared at: clang/include/clang/Basic/AttributeCommonInfo.h:148
¶bool isKeywordAttribute() const
bool isKeywordAttribute() constDeclared at: clang/include/clang/Basic/AttributeCommonInfo.h:185
¶bool isMicrosoftAttribute() const
bool isMicrosoftAttribute() constDeclared at: clang/include/clang/Basic/AttributeCommonInfo.h:146
¶bool isStandardAttributeSyntax() const
bool isStandardAttributeSyntax() constDescription
The attribute is spelled [[]] in either C or C++ mode, including standard attributes spelled with a keyword, like alignas.
Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:179
¶void setAttributeSpellingListIndex(unsigned int V)
void setAttributeSpellingListIndex(unsigned int V)Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:200
Parameters
- unsigned int V
¶void setRange(clang::SourceRange R)
void setRange(clang::SourceRange R)Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:134