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

Methods

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)

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)

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)

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)

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)

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)

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&&)

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:126

Parameters

clang::AttributeCommonInfo&&

AttributeCommonInfo(
    const clang::AttributeCommonInfo&)

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:127

Parameters

const clang::AttributeCommonInfo&

AttributeCommonInfo(clang::SourceRange AttrRange)

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:79

Parameters

clang::SourceRange AttrRange

unsigned int calculateAttributeSpellingListIndex()
    const

Description

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

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:131

unsigned int getAttributeSpellingListIndex() const

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:193

unsigned int getAttributeSpellingListIndexRaw()
    const

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:213

clang::SourceLocation getLoc() const

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:132

std::string getNormalizedFullName() const

Description

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)

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

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:129

clang::SourceRange getRange() const

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:133

clang::SourceLocation getScopeLoc() const

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:138

const clang::IdentifierInfo* getScopeName() const

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:137

clang::AttributeCommonInfo::Syntax getSyntax()
    const

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:130

bool hasScope() const

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:136

bool isAlignasAttribute() const

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:151

bool isAttributeSpellingListCalculated() const

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:216

bool isC2xAttribute() const

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:175

bool isCXX11Attribute() const

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:171

bool isClangScope() const

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:149

bool isContextSensitiveKeywordAttribute() const

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:189

bool isDeclspecAttribute() const

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:145

bool isGNUAttribute() const

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:183

bool isGNUScope() const

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:148

bool isKeywordAttribute() const

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:185

bool isMicrosoftAttribute() const

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:146

bool isStandardAttributeSyntax() const

Description

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)

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:200

Parameters

unsigned int V

void setRange(clang::SourceRange R)

Declared at: clang/include/clang/Basic/AttributeCommonInfo.h:134

Parameters

clang::SourceRange R