#include "clang/Basic/AttributeCommonInfo.h"
|
| AttributeCommonInfo (SourceRange AttrRange) |
|
| AttributeCommonInfo (SourceLocation AttrLoc) |
|
| AttributeCommonInfo (const IdentifierInfo *AttrName, const IdentifierInfo *ScopeName, SourceRange AttrRange, SourceLocation ScopeLoc, Syntax SyntaxUsed) |
|
| AttributeCommonInfo (const IdentifierInfo *AttrName, const IdentifierInfo *ScopeName, SourceRange AttrRange, SourceLocation ScopeLoc, Kind AttrKind, Syntax SyntaxUsed) |
|
| AttributeCommonInfo (const IdentifierInfo *AttrName, const IdentifierInfo *ScopeName, SourceRange AttrRange, SourceLocation ScopeLoc, Kind AttrKind, Syntax SyntaxUsed, unsigned Spelling) |
|
| AttributeCommonInfo (const IdentifierInfo *AttrName, SourceRange AttrRange, Syntax SyntaxUsed) |
|
| AttributeCommonInfo (SourceRange AttrRange, Kind K, Syntax SyntaxUsed) |
|
| AttributeCommonInfo (SourceRange AttrRange, Kind K, Syntax SyntaxUsed, unsigned Spelling) |
|
| AttributeCommonInfo (AttributeCommonInfo &&)=default |
|
| AttributeCommonInfo (const AttributeCommonInfo &)=default |
|
Kind | getParsedKind () const |
|
Syntax | getSyntax () const |
|
const IdentifierInfo * | getAttrName () const |
|
SourceLocation | getLoc () const |
|
SourceRange | getRange () const |
|
void | setRange (SourceRange R) |
|
bool | hasScope () const |
|
const IdentifierInfo * | getScopeName () const |
|
SourceLocation | getScopeLoc () const |
|
bool | isDeclspecAttribute () const |
|
bool | isMicrosoftAttribute () const |
|
bool | isGNUScope () const |
|
bool | isAlignasAttribute () const |
|
bool | isCXX11Attribute () const |
|
bool | isC2xAttribute () const |
|
bool | isKeywordAttribute () const |
|
bool | isContextSensitiveKeywordAttribute () const |
|
unsigned | getAttributeSpellingListIndex () const |
|
void | setAttributeSpellingListIndex (unsigned V) |
|
Definition at line 22 of file AttributeCommonInfo.h.
◆ Kind
Enumerator |
---|
NoSemaHandlerAttribute | |
IgnoredAttribute | |
UnknownAttribute | |
Definition at line 52 of file AttributeCommonInfo.h.
◆ Syntax
The style used to specify an attribute.
Enumerator |
---|
AS_GNU | attribute((...))
|
AS_CXX11 | [[...]]
|
AS_C2x | [[...]]
|
AS_Declspec | __declspec(...)
|
AS_Microsoft | [uuid("...")] class Foo
|
AS_Keyword | __ptr16, alignas(...), etc.
|
AS_Pragma | #pragma ...
|
AS_ContextSensitiveKeyword | Context-sensitive version of a keyword attribute.
|
Definition at line 25 of file AttributeCommonInfo.h.
◆ AttributeCommonInfo() [1/10]
clang::AttributeCommonInfo::AttributeCommonInfo |
( |
SourceRange |
AttrRange | ) |
|
|
inline |
◆ AttributeCommonInfo() [2/10]
clang::AttributeCommonInfo::AttributeCommonInfo |
( |
SourceLocation |
AttrLoc | ) |
|
|
inline |
◆ AttributeCommonInfo() [3/10]
◆ AttributeCommonInfo() [4/10]
◆ AttributeCommonInfo() [5/10]
◆ AttributeCommonInfo() [6/10]
◆ AttributeCommonInfo() [7/10]
◆ AttributeCommonInfo() [8/10]
clang::AttributeCommonInfo::AttributeCommonInfo |
( |
SourceRange |
AttrRange, |
|
|
Kind |
K, |
|
|
Syntax |
SyntaxUsed, |
|
|
unsigned |
Spelling |
|
) |
| |
|
inline |
◆ AttributeCommonInfo() [9/10]
◆ AttributeCommonInfo() [10/10]
◆ getAttributeSpellingListIndex()
unsigned clang::AttributeCommonInfo::getAttributeSpellingListIndex |
( |
| ) |
const |
|
inline |
◆ getAttrName()
const IdentifierInfo* clang::AttributeCommonInfo::getAttrName |
( |
| ) |
const |
|
inline |
◆ getLoc()
Definition at line 129 of file AttributeCommonInfo.h.
References clang::SourceRange::getBegin().
Referenced by checkNullabilityTypeSpecifier(), checkObjCKindOfType(), distributeNullabilityTypeAttr(), getAttrLoc(), HandleAddressSpaceTypeAttribute(), HandleExtVectorTypeAttr(), handleFunctionTypeAttr(), handleMSPointerTypeQualifierAttr(), HandleNeonVectorTypeAttr(), handleObjCGCTypeAttr(), handleObjCOwnershipTypeAttr(), HandleOpenCLAccessAttr(), and HandleVectorSizeAttr().
◆ getParsedKind() [1/2]
Kind clang::AttributeCommonInfo::getParsedKind |
( |
| ) |
const |
|
inline |
◆ getParsedKind() [2/2]
◆ getRange()
SourceRange clang::AttributeCommonInfo::getRange |
( |
| ) |
const |
|
inline |
◆ getScopeLoc()
◆ getScopeName()
const IdentifierInfo* clang::AttributeCommonInfo::getScopeName |
( |
| ) |
const |
|
inline |
◆ getSyntax()
Syntax clang::AttributeCommonInfo::getSyntax |
( |
| ) |
const |
|
inline |
◆ hasScope()
bool clang::AttributeCommonInfo::hasScope |
( |
| ) |
const |
|
inline |
◆ isAlignasAttribute()
bool clang::AttributeCommonInfo::isAlignasAttribute |
( |
| ) |
const |
|
inline |
◆ isAttributeSpellingListCalculated()
bool clang::AttributeCommonInfo::isAttributeSpellingListCalculated |
( |
| ) |
const |
|
inlineprotected |
◆ isC2xAttribute()
bool clang::AttributeCommonInfo::isC2xAttribute |
( |
| ) |
const |
|
inline |
◆ isContextSensitiveKeywordAttribute()
bool clang::AttributeCommonInfo::isContextSensitiveKeywordAttribute |
( |
| ) |
const |
|
inline |
◆ isCXX11Attribute()
bool clang::AttributeCommonInfo::isCXX11Attribute |
( |
| ) |
const |
|
inline |
◆ isDeclspecAttribute()
bool clang::AttributeCommonInfo::isDeclspecAttribute |
( |
| ) |
const |
|
inline |
◆ isGNUScope()
bool AttributeCommonInfo::isGNUScope |
( |
| ) |
const |
◆ isKeywordAttribute()
bool clang::AttributeCommonInfo::isKeywordAttribute |
( |
| ) |
const |
|
inline |
◆ isMicrosoftAttribute()
bool clang::AttributeCommonInfo::isMicrosoftAttribute |
( |
| ) |
const |
|
inline |
◆ setAttributeSpellingListIndex()
void clang::AttributeCommonInfo::setAttributeSpellingListIndex |
( |
unsigned |
V | ) |
|
|
inline |
◆ setRange()
void clang::AttributeCommonInfo::setRange |
( |
SourceRange |
R | ) |
|
|
inline |
◆ clang::ASTRecordWriter
◆ SpellingNotCalculated
constexpr unsigned clang::AttributeCommonInfo::SpellingNotCalculated = 0xf |
|
staticprotected |
The documentation for this class was generated from the following files: