clang 22.0.0git
clang::AttributeCommonInfo Class Reference

#include "clang/Basic/AttributeCommonInfo.h"

Inheritance diagram for clang::AttributeCommonInfo:
[legend]

Classes

class  Form
 Combines information about the source-code form of an attribute, including its syntax and spelling. More...

Public Types

enum  Syntax {
  AS_GNU = 1 , AS_CXX11 , AS_C23 , AS_Declspec ,
  AS_Microsoft , AS_Keyword , AS_Pragma , AS_ContextSensitiveKeyword ,
  AS_HLSLAnnotation , AS_Implicit
}
 The style used to specify an attribute. More...
enum  Kind { NoSemaHandlerAttribute , IgnoredAttribute , UnknownAttribute }
enum class  Scope {
  NONE , CLANG , GNU , MSVC ,
  OMP , HLSL , VK , GSL ,
  RISCV
}
enum class  AttrArgsInfo { None , Optional , Required }

Public Member Functions

 AttributeCommonInfo (const IdentifierInfo *AttrName, AttributeScopeInfo AttrScope, SourceRange AttrRange, Kind AttrKind, Form FormUsed)
 AttributeCommonInfo (const IdentifierInfo *AttrName, AttributeScopeInfo Scope, SourceRange AttrRange, Form FormUsed)
 AttributeCommonInfo (const IdentifierInfo *AttrName, SourceRange AttrRange, Form FormUsed)
 AttributeCommonInfo (SourceRange AttrRange, Kind K, Form FormUsed)
 AttributeCommonInfo (SourceRange AttrRange, AttributeScopeInfo AttrScope, Kind K, Form FormUsed)
 AttributeCommonInfo (AttributeCommonInfo &&)=default
 AttributeCommonInfo (const AttributeCommonInfo &)=default
Kind getParsedKind () const
Syntax getSyntax () const
Form getForm () const
const IdentifierInfogetAttrName () const
void setAttrName (const IdentifierInfo *AttrNameII)
SourceLocation getLoc () const
SourceRange getRange () const
void setRange (SourceRange R)
bool hasScope () const
bool isExplicitScope () const
const IdentifierInfogetScopeName () const
SourceLocation getScopeLoc () const
std::string getNormalizedFullName () const
 Gets the normalized full name, which consists of both scope and name and with surrounding underscores removed as appropriate (e.g.
std::string getNormalizedFullName (StringRef ScopeName, StringRef AttrName) const
StringRef getNormalizedScopeName () const
StringRef getNormalizedAttrName (StringRef ScopeName) const
std::optional< StringRef > tryGetCorrectedScopeName (StringRef ScopeName) const
std::optional< StringRef > tryGetCorrectedAttrName (StringRef ScopeName, StringRef AttrName, const TargetInfo &Target, const LangOptions &LangOpts) const
SourceRange getNormalizedRange () const
bool isDeclspecAttribute () const
bool isMicrosoftAttribute () const
bool isGNUScope () const
bool isClangScope () const
bool isCXX11Attribute () const
bool isC23Attribute () const
bool isAlignas () const
bool isStandardAttributeSyntax () const
 The attribute is spelled [[]] in either C or C++ mode, including standard attributes spelled with a keyword, like alignas.
bool isGNUAttribute () const
bool isKeywordAttribute () const
bool isRegularKeywordAttribute () const
bool isContextSensitiveKeywordAttribute () const
unsigned getAttributeSpellingListIndex () const
void setAttributeSpellingListIndex (unsigned V)

Static Public Member Functions

static Kind getParsedKind (const IdentifierInfo *Name, const IdentifierInfo *Scope, Syntax SyntaxUsed)
static AttrArgsInfo getCXX11AttrArgsInfo (const IdentifierInfo *Name)

Protected Member Functions

bool isAttributeSpellingListCalculated () const

Static Protected Attributes

static constexpr unsigned SpellingNotCalculated = 0xf

Friends

class clang::ASTRecordWriter

Detailed Description

Definition at line 29 of file AttributeCommonInfo.h.

Member Enumeration Documentation

◆ AttrArgsInfo

Enumerator
None 
Optional 
Required 

Definition at line 76 of file AttributeCommonInfo.h.

◆ Kind

Enumerator
NoSemaHandlerAttribute 
IgnoredAttribute 
UnknownAttribute 

Definition at line 67 of file AttributeCommonInfo.h.

◆ Scope

Enumerator
NONE 
CLANG 
GNU 
MSVC 
OMP 
HLSL 
VK 
GSL 
RISCV 

Definition at line 75 of file AttributeCommonInfo.h.

◆ Syntax

The style used to specify an attribute.

Enumerator
AS_GNU 

attribute((...))

AS_CXX11 

[[...]]

AS_C23 

[[...]]

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.

AS_HLSLAnnotation 

<vardecl> : <annotation>

AS_Implicit 

The attibute has no source code manifestation and is only created implicitly.

Definition at line 32 of file AttributeCommonInfo.h.

Constructor & Destructor Documentation

◆ AttributeCommonInfo() [1/7]

clang::AttributeCommonInfo::AttributeCommonInfo ( const IdentifierInfo * AttrName,
AttributeScopeInfo AttrScope,
SourceRange AttrRange,
Kind AttrKind,
Form FormUsed )
inline

◆ AttributeCommonInfo() [2/7]

clang::AttributeCommonInfo::AttributeCommonInfo ( const IdentifierInfo * AttrName,
AttributeScopeInfo Scope,
SourceRange AttrRange,
Form FormUsed )
inline

Definition at line 163 of file AttributeCommonInfo.h.

References AttributeCommonInfo(), getParsedKind(), and getSyntax().

◆ AttributeCommonInfo() [3/7]

clang::AttributeCommonInfo::AttributeCommonInfo ( const IdentifierInfo * AttrName,
SourceRange AttrRange,
Form FormUsed )
inline

Definition at line 170 of file AttributeCommonInfo.h.

References AttributeCommonInfo().

◆ AttributeCommonInfo() [4/7]

clang::AttributeCommonInfo::AttributeCommonInfo ( SourceRange AttrRange,
Kind K,
Form FormUsed )
inline

Definition at line 175 of file AttributeCommonInfo.h.

References AttributeCommonInfo(), and clang::nullptr.

◆ AttributeCommonInfo() [5/7]

clang::AttributeCommonInfo::AttributeCommonInfo ( SourceRange AttrRange,
AttributeScopeInfo AttrScope,
Kind K,
Form FormUsed )
inline

Definition at line 179 of file AttributeCommonInfo.h.

References AttributeCommonInfo(), and clang::nullptr.

◆ AttributeCommonInfo() [6/7]

clang::AttributeCommonInfo::AttributeCommonInfo ( AttributeCommonInfo && )
default

References AttributeCommonInfo().

◆ AttributeCommonInfo() [7/7]

clang::AttributeCommonInfo::AttributeCommonInfo ( const AttributeCommonInfo & )
default

References AttributeCommonInfo().

Member Function Documentation

◆ getAttributeSpellingListIndex()

◆ getAttrName()

◆ getCXX11AttrArgsInfo()

AttributeCommonInfo::AttrArgsInfo AttributeCommonInfo::getCXX11AttrArgsInfo ( const IdentifierInfo * Name)
static

◆ getForm()

Form clang::AttributeCommonInfo::getForm ( ) const
inline

Definition at line 188 of file AttributeCommonInfo.h.

References getSyntax().

◆ getLoc()

SourceLocation clang::AttributeCommonInfo::getLoc ( ) const
inline

Definition at line 194 of file AttributeCommonInfo.h.

Referenced by clang::Sema::ActOnCXXAssumeAttr(), clang::Sema::AddAlignedAttr(), clang::Sema::AddAlignedAttr(), clang::Sema::AddAlignValueAttr(), clang::Sema::AddAllocAlignAttr(), clang::Sema::AddAssumeAlignedAttr(), clang::Sema::AddModeAttr(), clang::SemaSwift::AddParameterABIAttr(), attrNonNullArgCheck(), clang::Sema::BuildCodeAlignAttr(), checkAcquireOrderAttrCommon(), clang::checkAMDGPUMaxNumWorkGroupsArguments(), checkAttrArgsAreCapabilityObjs(), checkAttributeNumArgsImpl(), clang::checkAttrMutualExclusion(), clang::Sema::CheckAttrTarget(), clang::Sema::CheckCallingConvAttr(), checkForConsumableClass(), checkFunctionConditionAttr(), checkFunParamsAreScopedLockable(), clang::checkIBOutletCommon(), checkMutualExclusion(), clang::checkNewAttrMutualExclusion(), CheckNullabilityTypeSpecifier(), clang::Sema::CheckRegparmAttr(), CheckStructurallyEquivalentAttributes(), checkTryLockFunAttrCommon(), clang::SemaHLSL::DiagnoseAttrStageMismatch(), clang::SemaHLSL::diagnoseInputIDType(), clang::ParsedAttr::diagnoseLangOpts(), clang::SemaHLSL::diagnosePositionType(), clang::SemaHLSL::diagnoseSystemSemanticAttr(), clang::Sema::getAttrLoc(), getPosAsWritten(), handleAbiTagAttr(), clang::SemaOpenCL::handleAccessAttr(), handleAcquireHandleAttr(), HandleAddressSpaceTypeAttribute(), handleAliasAttr(), handleAlignedAttr(), handleAllocSizeAttr(), handleAnalyzerNoReturnAttr(), HandleAnnotateTypeAttr(), clang::SemaX86::handleAnyInterruptAttr(), handleArgumentWithTypeTagAttr(), handleArmAgnosticAttribute(), HandleArmMveStrictPolymorphismAttr(), handleArmStateAttribute(), HandleArmSveVectorBitsTypeAttr(), clang::SemaSwift::handleAsyncAttr(), clang::SemaSwift::handleAsyncError(), handleAvailabilityAttr(), clang::SemaObjC::handleBlocksAttr(), clang::SemaSwift::handleBridge(), clang::SemaObjC::handleBridgeAttr(), HandleBTFTypeTagAttribute(), clang::SemaARM::handleBuiltinAliasAttr(), handleBuiltinAliasAttr(), handleCallbackAttr(), handleCallConvAttr(), handleCalledOnceAttr(), handleCFGuardAttr(), handleCFIUncheckedCalleeAttr(), clang::SemaARM::handleCmseNSEntryAttr(), handleCodeSegAttr(), handleCommonAttr(), handleConstantAttr(), handleConstructorAttr(), handleConsumableAttr(), handleCPUSpecificAttr(), handleDeclspecThreadAttr(), handleDependencyAttr(), handleDeprecatedAttr(), handleDeviceAttr(), handleDeviceKernelAttr(), handleDiagnoseAsBuiltinAttr(), handleDiagnoseIfAttr(), clang::SemaObjC::handleDirectAttr(), clang::SemaObjC::handleDirectMembersAttr(), handleEnableIfAttr(), handleEnforceTCBAttr(), handleEnumExtensibilityAttr(), clang::SemaSwift::handleError(), handleExcludeFromExplicitInstantiationAttr(), HandleExtVectorTypeAttr(), handleFallThroughAttr(), clang::SemaX86::handleForceAlignArgPointerAttr(), handleFormatArgAttr(), handleFormatAttr(), handleFormatAttrCommon(), handleFormatMatchesAttr(), handleGNUInlineAttr(), clang::SemaObjC::handleIBOutletCollection(), handleIFuncAttr(), handleInitPriorityAttr(), clang::SemaARM::handleInterruptAttr(), clang::SemaM68k::handleInterruptAttr(), clang::SemaMIPS::handleInterruptAttr(), clang::SemaMSP430::handleInterruptAttr(), clang::SemaRISCV::handleInterruptAttr(), handleLayoutVersion(), HandleLifetimeBoundAttr(), handleLifetimeCaptureByAttr(), handleLifetimeCategoryAttr(), handleLikely(), handleManagedAttr(), HandleMatrixTypeAttr(), clang::SemaObjC::handleMethodFamilyAttr(), handleMinVectorWidthAttr(), handleModeAttr(), handleMSAllocatorAttr(), handleMSConstexprAttr(), handleMSConstexprAttr(), handleMSInheritanceAttr(), handleMSPointerTypeQualifierAttr(), handleNakedAttr(), HandleNeonVectorTypeAttr(), clang::SemaARM::handleNewAttr(), clang::SemaSwift::handleNewType(), handleNoCfCheckAttr(), handleNoEscapeAttr(), handleNoMergeAttr(), handleNonBlockingNonAllocatingTypeAttr(), handleNonNullAttr(), handleNonNullAttrParameter(), handleNoReturnAttr(), clang::SemaOpenCL::handleNoSVMAttr(), clang::SemaObjC::handleNSErrorDomain(), clang::SemaHLSL::handleNumThreadsAttr(), HandleOpenCLAccessAttr(), handleOpenCLUnrollHint(), handleOwnershipAttr(), handlePackedAttr(), clang::SemaHLSL::handlePackOffsetAttr(), handleParamTypestateAttr(), handlePatchableFunctionEntryAttr(), clang::SemaObjC::handlePreciseLifetimeAttr(), handlePreferredName(), handlePreferredTypeAttr(), HandlePtrAuthQualifier(), handleReentrantCapabilityAttr(), clang::SemaHLSL::handleResourceBindingAttr(), clang::SemaHLSL::handleResourceTypeAttr(), handleRestrictAttr(), clang::SemaObjC::handleReturnsInnerPointerAttr(), handleReturnTypestateAttr(), HandleRISCVRVVVectorBitsTypeAttr(), clang::SemaHLSL::handleRootSignatureAttr(), clang::SemaHLSL::handleSemanticAttr(), handleSentinelAttr(), handleSetTypestateAttr(), clang::SemaHLSL::handleShaderAttr(), handleSharedAttr(), handleStandardNoReturnAttr(), clang::SemaOpenCL::handleSubGroupSize(), clang::SemaObjC::handleSuppresProtocolAttr(), handleSuppressAttr(), handleTargetClonesAttr(), handleTestTypestateAttr(), handleTransparentUnionAttr(), handleTypeTagForDatatypeAttr(), handleUnlikely(), handleUnusedAttr(), handleUuidAttr(), handleVecReturnAttr(), HandleVectorSizeAttr(), handleVecTypeHint(), handleVisibilityAttr(), handleVTablePointerAuthentication(), handleWarnUnusedResult(), clang::SemaHLSL::handleWaveSizeAttr(), handleWeakImportAttr(), handleWeakRefAttr(), HandleWebAssemblyFuncrefAttr(), clang::SemaWasm::handleWebAssemblyImportModuleAttr(), clang::SemaWasm::handleWebAssemblyImportNameAttr(), handleWorkGroupSize(), instantiateDependentAnnotationAttr(), markUsedForAliasOrIfunc(), clang::Sema::mergeAlwaysInlineAttr(), clang::Sema::mergeAvailabilityAttr(), clang::Sema::mergeCodeSegAttr(), clang::Sema::mergeDLLImportAttr(), clang::Sema::mergeErrorAttr(), clang::Sema::mergeInternalLinkageAttr(), clang::Sema::mergeMinSizeAttr(), clang::Sema::mergeMSInheritanceAttr(), clang::SemaHLSL::mergeNumThreadsAttr(), clang::Sema::mergeOptimizeNoneAttr(), clang::SemaHLSL::mergeParamModifierAttr(), clang::Sema::mergeSectionAttr(), clang::SemaHLSL::mergeShaderAttr(), clang::Sema::mergeUuidAttr(), mergeVisibilityAttr(), clang::SemaHLSL::mergeVkConstantIdAttr(), clang::SemaHLSL::mergeWaveSizeAttr(), clang::Sema::ParseLifetimeCaptureByAttr(), ProcessDeclAttribute(), ProcessStmtAttribute(), sharedGetConstructorDestructorAttrExpr(), threadSafetyCheckIsPointer(), and verifyValidIntegerConstantExpr().

◆ getNormalizedAttrName()

StringRef AttributeCommonInfo::getNormalizedAttrName ( StringRef ScopeName) const

Definition at line 148 of file Attributes.cpp.

References getAttrName(), getSyntax(), and normalizeAttrName().

Referenced by clang::Sema::DiagnoseUnknownAttribute().

◆ getNormalizedFullName() [1/2]

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 211 of file Attributes.cpp.

References getAttrName(), getScopeName(), getSyntax(), and normalizeName().

Referenced by clang::Sema::DiagnoseUnknownAttribute(), clang::FormatASTNodeDiagnosticArgument(), clang::ParsedAttrInfo::get(), and clang::Sema::mergeErrorAttr().

◆ getNormalizedFullName() [2/2]

std::string AttributeCommonInfo::getNormalizedFullName ( StringRef ScopeName,
StringRef AttrName ) const

Definition at line 217 of file Attributes.cpp.

References getSyntax(), and normalizeName().

◆ getNormalizedRange()

SourceRange AttributeCommonInfo::getNormalizedRange ( ) const

Definition at line 223 of file Attributes.cpp.

References hasScope().

Referenced by clang::Sema::DiagnoseUnknownAttribute().

◆ getNormalizedScopeName()

StringRef AttributeCommonInfo::getNormalizedScopeName ( ) const

◆ getParsedKind() [1/2]

◆ getParsedKind() [2/2]

AttributeCommonInfo::Kind AttributeCommonInfo::getParsedKind ( const IdentifierInfo * Name,
const IdentifierInfo * Scope,
Syntax SyntaxUsed )
static

Definition at line 189 of file Attributes.cpp.

References AS_HLSLAnnotation, normalizeName(), and UnknownAttribute.

◆ getRange()

SourceRange clang::AttributeCommonInfo::getRange ( ) const
inline

Definition at line 195 of file AttributeCommonInfo.h.

Referenced by clang::Sema::ActOnIfStmt(), clang::Sema::AddAllocAlignAttr(), clang::Sema::AddAssumeAlignedAttr(), clang::ASTRecordWriter::AddAttr(), clang::Sema::AddModeAttr(), clang::SemaObjC::AddXConsumedAttr(), clang::Sema::CheckAttrTarget(), clang::Sema::CheckCompleteVariableDeclaration(), clang::Sema::DiagnoseSentinelCalls(), clang::Sema::DiagnoseUnknownAttribute(), clang::AttributedTypeLoc::getLocalSourceRange(), clang::Attr::getLocation(), clang::SemaOpenCL::handleAccessAttr(), handleAcquireHandleAttr(), handleAvailabilityAttr(), handleCallbackAttr(), handleDeprecatedAttr(), handleDLLAttr(), handleFallThroughAttr(), clang::SemaRISCV::handleInterruptAttr(), handleLifetimeCaptureByAttr(), handleMSAllocatorAttr(), handleMSConstexprAttr(), handleMSConstexprAttr(), handleNoEscapeAttr(), handleNonStringAttr(), handleNullableTypeAttr(), HandleOpenCLAccessAttr(), handleOpenCLUnrollHint(), clang::SemaObjC::handleOwnershipAttr(), HandlePtrAuthQualifier(), handleStandardNoReturnAttr(), clang::SemaObjC::handleSuppresProtocolAttr(), handleVisibilityAttr(), clang::SemaObjC::handleXReturnsXRetainedAttr(), instantiateOMPDeclareSimdDeclAttr(), instantiateOMPDeclareVariantAttr(), clang::Sema::mergeAvailabilityAttr(), clang::Sema::mergeFormatAttr(), clang::Sema::mergeFormatMatchesAttr(), clang::Sema::mergeMSInheritanceAttr(), clang::SemaHLSL::mergeParamModifierAttr(), clang::Sema::ParseLifetimeCaptureByAttr(), ProcessDeclAttribute(), ProcessStmtAttribute(), clang::JSONNodeDumper::Visit(), and clang::TextNodeDumper::Visit().

◆ getScopeLoc()

SourceLocation clang::AttributeCommonInfo::getScopeLoc ( ) const
inline

◆ getScopeName()

◆ getSyntax()

◆ hasScope()

bool clang::AttributeCommonInfo::hasScope ( ) const
inline

◆ isAlignas()

bool clang::AttributeCommonInfo::isAlignas ( ) const
inline

◆ isAttributeSpellingListCalculated()

bool clang::AttributeCommonInfo::isAttributeSpellingListCalculated ( ) const
inlineprotected

Definition at line 283 of file AttributeCommonInfo.h.

References SpellingNotCalculated.

Referenced by getAttributeSpellingListIndex().

◆ isC23Attribute()

bool clang::AttributeCommonInfo::isC23Attribute ( ) const
inline

Definition at line 229 of file AttributeCommonInfo.h.

References AS_C23.

Referenced by isStandardAttributeSyntax(), and ProcessDeclAttribute().

◆ isClangScope()

bool AttributeCommonInfo::isClangScope ( ) const

Definition at line 157 of file Attributes.cpp.

Referenced by handleWarnUnusedResult(), and ProcessDeclAttribute().

◆ isContextSensitiveKeywordAttribute()

bool clang::AttributeCommonInfo::isContextSensitiveKeywordAttribute ( ) const
inline

Definition at line 254 of file AttributeCommonInfo.h.

References AS_ContextSensitiveKeyword.

Referenced by CheckNullabilityTypeSpecifier().

◆ isCXX11Attribute()

bool clang::AttributeCommonInfo::isCXX11Attribute ( ) const
inline

◆ isDeclspecAttribute()

bool clang::AttributeCommonInfo::isDeclspecAttribute ( ) const
inline

◆ isExplicitScope()

bool clang::AttributeCommonInfo::isExplicitScope ( ) const
inline

Definition at line 199 of file AttributeCommonInfo.h.

Referenced by clang::Sema::DiagnoseUnknownAttribute().

◆ isGNUAttribute()

bool clang::AttributeCommonInfo::isGNUAttribute ( ) const
inline

Definition at line 246 of file AttributeCommonInfo.h.

References AS_GNU.

Referenced by handleWarnUnusedResult().

◆ isGNUScope()

bool AttributeCommonInfo::isGNUScope ( ) const

Definition at line 152 of file Attributes.cpp.

Referenced by handleDeprecatedAttr(), and handleWarnUnusedResult().

◆ isKeywordAttribute()

bool clang::AttributeCommonInfo::isKeywordAttribute ( ) const
inline

Definition at line 248 of file AttributeCommonInfo.h.

References AS_ContextSensitiveKeyword, and AS_Keyword.

Referenced by isAlignas().

◆ isMicrosoftAttribute()

bool clang::AttributeCommonInfo::isMicrosoftAttribute ( ) const
inline

Definition at line 222 of file AttributeCommonInfo.h.

References AS_Microsoft.

Referenced by handleUuidAttr().

◆ isRegularKeywordAttribute()

bool clang::AttributeCommonInfo::isRegularKeywordAttribute ( ) const
inline

Definition at line 252 of file AttributeCommonInfo.h.

Referenced by clang::ASTRecordWriter::AddAttr(), clang::SemaSwift::AddParameterABIAttr(), AttributeCommonInfo(), clang::checkAttrMutualExclusion(), clang::checkAttrMutualExclusion(), clang::Sema::CheckAttrTarget(), checkMutualExclusion(), clang::Declarator::Declarator(), clang::SemaSwift::DiagnoseName(), handleAnalyzerNoReturnAttr(), clang::SemaX86::handleAnyInterruptAttr(), handleCallConvAttr(), handleCFIUncheckedCalleeAttr(), handleDeviceKernelAttr(), clang::SemaX86::handleForceAlignArgPointerAttr(), clang::SemaAVR::handleInterruptAttr(), clang::SemaMIPS::handleInterruptAttr(), clang::SemaMSP430::handleInterruptAttr(), clang::SemaRISCV::handleInterruptAttr(), HandleLifetimeBoundAttr(), handleLifetimeCategoryAttr(), handleNakedAttr(), clang::SemaSwift::handleNewType(), handleNonStringAttr(), handleNoReturnAttr(), handleNoSanitizeSpecificAttr(), handleNullableTypeAttr(), clang::SemaObjC::handleOwnershipAttr(), handleOwnershipAttr(), handleSentinelAttr(), clang::SemaAVR::handleSignalAttr(), handleTransparentUnionAttr(), handleTypeTagForDatatypeAttr(), handleVisibilityAttr(), handleWarnUnusedResult(), handleWeakImportAttr(), clang::SemaWasm::handleWebAssemblyExportNameAttr(), clang::SemaObjC::handleXReturnsXRetainedAttr(), clang::Sema::mergeErrorAttr(), clang::Sema::mergeInternalLinkageAttr(), ProcessDeclAttribute(), ProcessStmtAttribute(), clang::ParsedAttr::slidesFromDeclToDeclSpecLegacyBehavior(), and validateAlignasAppliedType().

◆ isStandardAttributeSyntax()

bool clang::AttributeCommonInfo::isStandardAttributeSyntax ( ) const
inline

◆ setAttributeSpellingListIndex()

void clang::AttributeCommonInfo::setAttributeSpellingListIndex ( unsigned V)
inline

Definition at line 265 of file AttributeCommonInfo.h.

References V.

Referenced by handleNoSanitizeSpecificAttr().

◆ setAttrName()

void clang::AttributeCommonInfo::setAttrName ( const IdentifierInfo * AttrNameII)
inline

Definition at line 193 of file AttributeCommonInfo.h.

◆ setRange()

void clang::AttributeCommonInfo::setRange ( SourceRange R)
inline

Definition at line 196 of file AttributeCommonInfo.h.

◆ tryGetCorrectedAttrName()

std::optional< StringRef > AttributeCommonInfo::tryGetCorrectedAttrName ( StringRef ScopeName,
StringRef AttrName,
const TargetInfo & Target,
const LangOptions & LangOpts ) const

◆ tryGetCorrectedScopeName()

std::optional< StringRef > AttributeCommonInfo::tryGetCorrectedScopeName ( StringRef ScopeName) const

◆ clang::ASTRecordWriter

friend class clang::ASTRecordWriter
friend

Definition at line 278 of file AttributeCommonInfo.h.

Member Data Documentation

◆ SpellingNotCalculated

unsigned clang::AttributeCommonInfo::SpellingNotCalculated = 0xf
staticconstexprprotected

The documentation for this class was generated from the following files: