clang 19.0.0git
Macros | Functions
Attributes.cpp File Reference
#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 "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)
 

Macro Definition Documentation

◆ ATTR_MATCH_RULE

#define ATTR_MATCH_RULE (   NAME,
  SPELLING,
  IsAbstract 
)
Value:
case attr::NAME: \
return SPELLING;

Function Documentation

◆ hasAttributeImpl()

static int hasAttributeImpl ( AttributeCommonInfo::Syntax  Syntax,
StringRef  Name,
StringRef  ScopeName,
const TargetInfo Target,
const LangOptions LangOpts 
)
static

Definition at line 22 of file Attributes.cpp.

Referenced by clang::hasAttribute().

◆ normalizeAttrName()

static StringRef normalizeAttrName ( const IdentifierInfo Name,
StringRef  NormalizedScopeName,
AttributeCommonInfo::Syntax  SyntaxUsed 
)
static

◆ normalizeAttrScopeName()

static StringRef normalizeAttrScopeName ( const IdentifierInfo Scope,
AttributeCommonInfo::Syntax  SyntaxUsed 
)
static

◆ normalizeName()

static SmallString< 64 > normalizeName ( const IdentifierInfo Name,
const IdentifierInfo Scope,
AttributeCommonInfo::Syntax  SyntaxUsed 
)
static