clang
13.0.0git
|
#include "clang/Basic/AttributeCommonInfo.h"
Public Types | |
enum | Syntax { AS_GNU, AS_CXX11, AS_C2x, AS_Declspec, AS_Microsoft, AS_Keyword, AS_Pragma, AS_ContextSensitiveKeyword } |
The style used to specify an attribute. More... | |
enum | Kind { NoSemaHandlerAttribute, IgnoredAttribute, UnknownAttribute } |
Static Public Member Functions | |
static Kind | getParsedKind (const IdentifierInfo *Name, const IdentifierInfo *Scope, Syntax SyntaxUsed) |
Protected Member Functions | |
bool | isAttributeSpellingListCalculated () const |
Static Protected Attributes | |
static constexpr unsigned | SpellingNotCalculated = 0xf |
Friends | |
class | clang::ASTRecordWriter |
Definition at line 22 of file AttributeCommonInfo.h.
Enumerator | |
---|---|
NoSemaHandlerAttribute | |
IgnoredAttribute | |
UnknownAttribute |
Definition at line 52 of file AttributeCommonInfo.h.
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.
|
inline |
Definition at line 76 of file AttributeCommonInfo.h.
|
inline |
Definition at line 80 of file AttributeCommonInfo.h.
|
inline |
Definition at line 84 of file AttributeCommonInfo.h.
|
inline |
Definition at line 92 of file AttributeCommonInfo.h.
|
inline |
Definition at line 99 of file AttributeCommonInfo.h.
|
inline |
Definition at line 107 of file AttributeCommonInfo.h.
|
inline |
Definition at line 113 of file AttributeCommonInfo.h.
|
inline |
Definition at line 118 of file AttributeCommonInfo.h.
|
default |
|
default |
|
inline |
Definition at line 166 of file AttributeCommonInfo.h.
References isAttributeSpellingListCalculated().
Referenced by clang::Attr::getSpellingListIndex().
|
inline |
Definition at line 128 of file AttributeCommonInfo.h.
Referenced by clang::ASTRecordWriter::AddAttr(), distributeNullabilityTypeAttr(), getNormalizedFullName(), and clang::operator<<().
|
inline |
Definition at line 129 of file AttributeCommonInfo.h.
References clang::SourceRange::getBegin().
Referenced by clang::Sema::AddAlignedAttr(), clang::Sema::AddAlignValueAttr(), clang::Sema::AddAllocAlignAttr(), clang::Sema::AddAssumeAlignedAttr(), clang::Sema::AddParameterABIAttr(), clang::Sema::CheckAttrTarget(), clang::Sema::CheckCallingConvAttr(), clang::Sema::CheckRegparmAttr(), distributeNullabilityTypeAttr(), getAttrLoc(), HandleArmMveStrictPolymorphismAttr(), clang::Sema::mergeAlwaysInlineAttr(), clang::Sema::mergeAvailabilityAttr(), clang::Sema::mergeDLLImportAttr(), clang::Sema::mergeInternalLinkageAttr(), clang::Sema::mergeMinSizeAttr(), clang::Sema::mergeMSInheritanceAttr(), clang::Sema::mergeOptimizeNoneAttr(), and clang::Sema::mergeUuidAttr().
std::string AttributeCommonInfo::getNormalizedFullName | ( | ) | const |
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).
Definition at line 106 of file Attributes.cpp.
References getAttrName(), getScopeName(), getSyntax(), normalizeName(), and string().
Referenced by clang::ParsedAttrInfo::get().
|
inline |
Definition at line 126 of file AttributeCommonInfo.h.
Referenced by clang::ASTRecordWriter::AddAttr(), clang::ParsedAttr::asOpenCLLangAS(), clang::ParsedAttrInfo::get(), clang::ParsedAttr::getAvailabilityDeprecated(), clang::ParsedAttr::getAvailabilityIntroduced(), clang::ParsedAttr::getAvailabilityObsoleted(), clang::ParsedAttr::getLayoutCompatible(), clang::ParsedAttr::getMatchingCType(), clang::ParsedAttr::getMessageExpr(), clang::ParsedAttr::getMustBeNull(), clang::ParsedAttr::getReplacementExpr(), clang::ParsedAttr::getStrictLoc(), clang::ParsedAttr::getUnavailableLoc(), clang::ParsedAttributesView::hasAttribute(), isAlignasAttribute(), and IsBuiltInOrStandardCXX11Attribute().
|
static |
Definition at line 100 of file Attributes.cpp.
|
inline |
Definition at line 130 of file AttributeCommonInfo.h.
Referenced by clang::Sema::AddAllocAlignAttr(), clang::Sema::AddAssumeAlignedAttr(), clang::ASTRecordWriter::AddAttr(), clang::Sema::AddXConsumedAttr(), clang::Sema::CheckAttrTarget(), clang::AttributedTypeLoc::getLocalSourceRange(), clang::Attr::getLocation(), clang::ASTImporter::Import(), clang::Sema::mergeAvailabilityAttr(), clang::Sema::mergeFormatAttr(), clang::Sema::mergeMSInheritanceAttr(), clang::TextNodeDumper::Visit(), and clang::JSONNodeDumper::Visit().
|
inline |
Definition at line 135 of file AttributeCommonInfo.h.
Referenced by clang::ASTRecordWriter::AddAttr().
|
inline |
Definition at line 134 of file AttributeCommonInfo.h.
Referenced by clang::ASTRecordWriter::AddAttr(), and getNormalizedFullName().
|
inline |
Definition at line 127 of file AttributeCommonInfo.h.
Referenced by clang::ASTRecordWriter::AddAttr(), clang::ParsedAttrInfo::get(), and getNormalizedFullName().
|
inline |
Definition at line 133 of file AttributeCommonInfo.h.
|
inline |
Definition at line 147 of file AttributeCommonInfo.h.
References getParsedKind(), and isKeywordAttribute().
Referenced by isCXX11Attribute().
|
inlineprotected |
Definition at line 189 of file AttributeCommonInfo.h.
References SpellingNotCalculated.
Referenced by getAttributeSpellingListIndex().
|
inline |
Definition at line 156 of file AttributeCommonInfo.h.
References AS_C2x.
|
inline |
Definition at line 162 of file AttributeCommonInfo.h.
References AS_ContextSensitiveKeyword.
Referenced by distributeNullabilityTypeAttr().
|
inline |
Definition at line 152 of file AttributeCommonInfo.h.
References AS_CXX11, and isAlignasAttribute().
Referenced by distributeFunctionTypeAttrFromDeclSpec().
|
inline |
Definition at line 142 of file AttributeCommonInfo.h.
References AS_Declspec.
bool AttributeCommonInfo::isGNUScope | ( | ) | const |
Definition at line 76 of file Attributes.cpp.
References clang::IdentifierInfo::isStr().
|
inline |
Definition at line 158 of file AttributeCommonInfo.h.
References AS_ContextSensitiveKeyword, and AS_Keyword.
Referenced by isAlignasAttribute().
|
inline |
Definition at line 143 of file AttributeCommonInfo.h.
References AS_Microsoft.
|
inline |
Definition at line 173 of file AttributeCommonInfo.h.
References V.
|
inline |
Definition at line 131 of file AttributeCommonInfo.h.
Referenced by clang::ASTImporter::Import().
|
friend |
Definition at line 184 of file AttributeCommonInfo.h.
|
staticconstexprprotected |
Definition at line 73 of file AttributeCommonInfo.h.
Referenced by isAttributeSpellingListCalculated().