#include "clang/Basic/Attributes.h"
#include "clang/Basic/AttrSubjectMatchRules.h"
#include "clang/Basic/IdentifierTable.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/ParsedAttrInfo.h"
#include "clang/Basic/SimpleTypoCorrection.h"
#include "clang/Basic/TargetInfo.h"
#include "llvm/ADT/StringSwitch.h"
#include "clang/Basic/AttrHasAttributeImpl.inc"
#include "clang/Basic/AttrSubMatchRulesList.inc"
#include "clang/Sema/AttrParsedAttrKinds.inc"
#include "clang/Basic/CXX11AttributeInfo.inc"
#include "clang/Sema/AttrSpellingListIndex.inc"
#include "clang/Basic/AttributeSpellingList.inc"
Go to the source code of this file.
|
static StringRef | canonicalizeScopeName (StringRef Name) |
static StringRef | canonicalizeAttrName (StringRef Name) |
static int | hasAttributeImpl (AttributeCommonInfo::Syntax Syntax, StringRef Name, StringRef ScopeName, const TargetInfo &Target, const LangOptions &LangOpts) |
static StringRef | normalizeAttrScopeName (StringRef ScopeName, AttributeCommonInfo::Syntax SyntaxUsed) |
static StringRef | normalizeAttrScopeName (const IdentifierInfo *ScopeName, AttributeCommonInfo::Syntax SyntaxUsed) |
static StringRef | normalizeAttrName (StringRef AttrName, StringRef NormalizedScopeName, AttributeCommonInfo::Syntax SyntaxUsed) |
static SmallString< 64 > | normalizeName (StringRef AttrName, StringRef ScopeName, AttributeCommonInfo::Syntax SyntaxUsed) |
static SmallString< 64 > | normalizeName (const IdentifierInfo *Name, const IdentifierInfo *Scope, AttributeCommonInfo::Syntax SyntaxUsed) |
static AttributeCommonInfo::Scope | getScopeFromNormalizedScopeName (StringRef ScopeName) |
â ATTR_MATCH_RULE
#define ATTR_MATCH_RULE |
( |
| NAME, |
|
|
| SPELLING, |
|
|
| IsAbstract ) |
Value: case attr::NAME: \
return SPELLING;
â ATTR_NAME
#define ATTR_NAME |
( |
| NAME | ) |
|
â ATTR_SCOPE_NAME
#define ATTR_SCOPE_NAME |
( |
| SCOPE_NAME | ) |
|
â CXX11_ATTR_ARGS_INFO
#define CXX11_ATTR_ARGS_INFO |
â canonicalizeAttrName()
StringRef canonicalizeAttrName |
( |
StringRef | Name | ) |
|
|
static |
â canonicalizeScopeName()
StringRef canonicalizeScopeName |
( |
StringRef | Name | ) |
|
|
static |
â getScopeFromNormalizedScopeName()
â hasAttributeImpl()
â normalizeAttrName()
Definition at line 125 of file Attributes.cpp.
References clang::AttributeCommonInfo::AS_C23, clang::AttributeCommonInfo::AS_CXX11, clang::AttributeCommonInfo::AS_GNU, and canonicalizeAttrName().
Referenced by attributeAcceptsExprPack(), attributeHasIdentifierArg(), attributeHasStrictIdentifierArgs(), attributeHasVariadicIdentifierArg(), attributeIsTypeArgAttr(), attributeParsedArgsUnevaluated(), attributeStringLiteralListArg(), attributeTreatsKeywordThisAsIdentifier(), clang::AttributeCommonInfo::getCXX11AttrArgsInfo(), clang::AttributeCommonInfo::getNormalizedAttrName(), IsAttributeLateParsedExperimentalExt(), IsAttributeLateParsedStandard(), and normalizeName().
â normalizeAttrScopeName() [1/2]
â normalizeAttrScopeName() [2/2]
â normalizeName() [1/2]
â normalizeName() [2/2]
â AttrScopeSpellingList
const char* AttrScopeSpellingList[] |
|
staticconstexpr |
â AttrSpellingList
const char* AttrSpellingList[] |
|
staticconstexpr |