clang 20.0.0git
|
#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/TargetInfo.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringSwitch.h"
#include "clang/Basic/AttrHasAttributeImpl.inc"
#include "clang/Basic/AttrSubMatchRulesList.inc"
#include "clang/Sema/AttrParsedAttrKinds.inc"
#include "clang/Sema/AttrSpellingListIndex.inc"
Go to the source code of this file.
Macros | |
#define | ATTR_MATCH_RULE(NAME, SPELLING, IsAbstract) |
Functions | |
static int | hasAttributeImpl (AttributeCommonInfo::Syntax Syntax, StringRef Name, StringRef ScopeName, const TargetInfo &Target, const LangOptions &LangOpts) |
static StringRef | normalizeAttrScopeName (const IdentifierInfo *Scope, AttributeCommonInfo::Syntax SyntaxUsed) |
static StringRef | normalizeAttrName (const IdentifierInfo *Name, StringRef NormalizedScopeName, AttributeCommonInfo::Syntax SyntaxUsed) |
static SmallString< 64 > | normalizeName (const IdentifierInfo *Name, const IdentifierInfo *Scope, AttributeCommonInfo::Syntax SyntaxUsed) |
static AttributeCommonInfo::Scope | getScopeFromNormalizedScopeName (StringRef ScopeName) |
#define ATTR_MATCH_RULE | ( | NAME, | |
SPELLING, | |||
IsAbstract | |||
) |
|
static |
Definition at line 160 of file Attributes.cpp.
References clang::AttributeCommonInfo::CLANG, clang::AttributeCommonInfo::GNU, clang::AttributeCommonInfo::GSL, clang::AttributeCommonInfo::HLSL, clang::AttributeCommonInfo::MSVC, clang::AttributeCommonInfo::NONE, clang::AttributeCommonInfo::OMP, and clang::AttributeCommonInfo::RISCV.
|
static |
Definition at line 25 of file Attributes.cpp.
Referenced by clang::hasAttribute().
|
static |
Definition at line 101 of file Attributes.cpp.
References clang::AttributeCommonInfo::AS_C23, clang::AttributeCommonInfo::AS_CXX11, and clang::AttributeCommonInfo::AS_GNU.
Referenced by attributeAcceptsExprPack(), attributeHasIdentifierArg(), attributeHasStrictIdentifierArgs(), attributeHasVariadicIdentifierArg(), attributeIsTypeArgAttr(), attributeParsedArgsUnevaluated(), attributeStringLiteralListArg(), attributeTreatsKeywordThisAsIdentifier(), IsAttributeLateParsedExperimentalExt(), IsAttributeLateParsedStandard(), and normalizeName().
|
static |
Definition at line 83 of file Attributes.cpp.
References clang::AttributeCommonInfo::AS_C23, and clang::AttributeCommonInfo::AS_CXX11.
Referenced by normalizeName().
|
static |
Definition at line 130 of file Attributes.cpp.
References clang::AttributeCommonInfo::AS_C23, clang::AttributeCommonInfo::AS_CXX11, FullName, normalizeAttrName(), and normalizeAttrScopeName().
Referenced by clang::Sema::AddModeAttr(), clang::AttributeCommonInfo::getNormalizedFullName(), clang::AttributeCommonInfo::getParsedKind(), handleFormatAttr(), handleNoSanitizeSpecificAttr(), and handleOwnershipAttr().