clang 22.0.0git
|
#include "clang/Basic/AttributeCommonInfo.h"
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 IdentifierInfo * | getAttrName () const |
void | setAttrName (const IdentifierInfo *AttrNameII) |
SourceLocation | getLoc () const |
SourceRange | getRange () const |
void | setRange (SourceRange R) |
bool | hasScope () const |
bool | isExplicitScope () const |
const IdentifierInfo * | getScopeName () 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 |
Definition at line 29 of file AttributeCommonInfo.h.
|
strong |
Enumerator | |
---|---|
None | |
Optional | |
Required |
Definition at line 76 of file AttributeCommonInfo.h.
Enumerator | |
---|---|
NoSemaHandlerAttribute | |
IgnoredAttribute | |
UnknownAttribute |
Definition at line 67 of file AttributeCommonInfo.h.
|
strong |
Enumerator | |
---|---|
NONE | |
CLANG | |
GNU | |
MSVC | |
OMP | |
HLSL | |
VK | |
GSL | |
RISCV |
Definition at line 75 of file AttributeCommonInfo.h.
The style used to specify an attribute.
Definition at line 32 of file AttributeCommonInfo.h.
|
inline |
Definition at line 151 of file AttributeCommonInfo.h.
References AS_GNU, AS_Implicit, getSyntax(), isAlignas(), and isRegularKeywordAttribute().
Referenced by clang::Attr::Attr(), AttributeCommonInfo(), AttributeCommonInfo(), AttributeCommonInfo(), AttributeCommonInfo(), AttributeCommonInfo(), AttributeCommonInfo(), and clang::ParsedAttr::AttributePool.
|
inline |
Definition at line 163 of file AttributeCommonInfo.h.
References AttributeCommonInfo(), getParsedKind(), and getSyntax().
|
inline |
Definition at line 170 of file AttributeCommonInfo.h.
References AttributeCommonInfo().
|
inline |
Definition at line 175 of file AttributeCommonInfo.h.
References AttributeCommonInfo(), and clang::nullptr.
|
inline |
Definition at line 179 of file AttributeCommonInfo.h.
References AttributeCommonInfo(), and clang::nullptr.
|
default |
References AttributeCommonInfo().
|
default |
References AttributeCommonInfo().
|
inline |
Definition at line 258 of file AttributeCommonInfo.h.
References isAttributeSpellingListCalculated().
Referenced by clang::ParsedAttr::existsInTarget(), clang::Attr::getSpellingListIndex(), handleRestrictAttr(), handleSuppressAttr(), handleSuppressAttr(), and clang::Sema::mergeSectionAttr().
|
inline |
Definition at line 192 of file AttributeCommonInfo.h.
Referenced by clang::Sema::ActOnCXXAssumeAttr(), clang::ASTRecordWriter::AddAttr(), clang::SemaHLSL::createSemanticAttr(), clang::SemaHLSL::DiagnoseAttrStageMismatch(), clang::SemaHLSL::diagnoseSystemSemanticAttr(), clang::FormatASTNodeDiagnosticArgument(), getNormalizedAttrName(), getNormalizedFullName(), clang::SemaOpenCL::handleAccessAttr(), handleAlwaysInlineAttr(), handleArgumentWithTypeTagAttr(), handleEnforceTCBAttr(), handleNonBlockingNonAllocatingTypeAttr(), handleNoSanitizeSpecificAttr(), HandleOpenCLAccessAttr(), clang::SemaHLSL::handleSemanticAttr(), and ProcessDeclAttribute().
|
static |
Definition at line 201 of file Attributes.cpp.
References AS_CXX11, clang::IdentifierInfo::getName(), None, and normalizeAttrName().
Referenced by isReservedCXXAttributeName().
|
inline |
Definition at line 188 of file AttributeCommonInfo.h.
References getSyntax().
|
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().
StringRef AttributeCommonInfo::getNormalizedAttrName | ( | StringRef | ScopeName | ) | const |
Definition at line 148 of file Attributes.cpp.
References getAttrName(), getSyntax(), and normalizeAttrName().
Referenced by clang::Sema::DiagnoseUnknownAttribute().
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().
std::string AttributeCommonInfo::getNormalizedFullName | ( | StringRef | ScopeName, |
StringRef | AttrName ) const |
Definition at line 217 of file Attributes.cpp.
References getSyntax(), and normalizeName().
SourceRange AttributeCommonInfo::getNormalizedRange | ( | ) | const |
Definition at line 223 of file Attributes.cpp.
References hasScope().
Referenced by clang::Sema::DiagnoseUnknownAttribute().
StringRef AttributeCommonInfo::getNormalizedScopeName | ( | ) | const |
Definition at line 143 of file Attributes.cpp.
References getScopeName(), getSyntax(), and normalizeAttrScopeName().
Referenced by clang::Sema::DiagnoseUnknownAttribute().
|
inline |
Definition at line 186 of file AttributeCommonInfo.h.
Referenced by clang::ASTRecordWriter::AddAttr(), clang::ParsedAttr::asHLSLLangAS(), clang::ParsedAttr::asOpenCLLangAS(), AttributeCommonInfo(), clang::ParsedAttr::existsInTarget(), clang::ParsedAttrInfo::get(), clang::ParsedAttr::getAvailabilityDeprecated(), clang::ParsedAttr::getAvailabilityIntroduced(), clang::ParsedAttr::getAvailabilityObsoleted(), clang::ParsedAttr::getEnvironment(), clang::ParsedAttr::getLayoutCompatible(), clang::ParsedAttr::getMatchingCType(), clang::ParsedAttr::getMessageExpr(), clang::ParsedAttr::getMustBeNull(), clang::ParsedAttr::getReplacementExpr(), clang::ParsedAttr::getStrictLoc(), clang::ParsedAttr::getUnavailableLoc(), handleCPUSpecificAttr(), clang::ParsedAttributesView::hasAttribute(), isAlignas(), IsBuiltInOrStandardCXX11Attribute(), and clang::ParsedAttr::slidesFromDeclToDeclSpecLegacyBehavior().
|
static |
Definition at line 189 of file Attributes.cpp.
References AS_HLSLAnnotation, normalizeName(), and UnknownAttribute.
|
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().
|
inline |
Definition at line 202 of file AttributeCommonInfo.h.
Referenced by clang::ASTRecordWriter::AddAttr(), clang::Sema::DiagnoseUnknownAttribute(), and clang::SemaHLSL::handleResourceTypeAttr().
|
inline |
Definition at line 201 of file AttributeCommonInfo.h.
References clang::IdentifierInfo::getName().
Referenced by clang::ASTRecordWriter::AddAttr(), clang::FormatASTNodeDiagnosticArgument(), getNormalizedFullName(), getNormalizedScopeName(), handleFallThroughAttr(), handleLikely(), clang::SemaHLSL::handleResourceTypeAttr(), handleUnlikely(), handleUnusedAttr(), and handleWarnUnusedResult().
|
inline |
Definition at line 187 of file AttributeCommonInfo.h.
Referenced by clang::Sema::ActOnCXXAssumeAttr(), clang::ASTRecordWriter::AddAttr(), AttributeCommonInfo(), AttributeCommonInfo(), clang::ParsedAttrInfo::get(), getForm(), getNormalizedAttrName(), getNormalizedFullName(), getNormalizedFullName(), getNormalizedScopeName(), and tryGetCorrectedAttrName().
|
inline |
Definition at line 198 of file AttributeCommonInfo.h.
Referenced by clang::FormatASTNodeDiagnosticArgument(), and getNormalizedRange().
|
inline |
Definition at line 231 of file AttributeCommonInfo.h.
References getParsedKind(), and isKeywordAttribute().
Referenced by AttributeCommonInfo(), and clang::ParsedAttr::slidesFromDeclToDeclSpecLegacyBehavior().
|
inlineprotected |
Definition at line 283 of file AttributeCommonInfo.h.
References SpellingNotCalculated.
Referenced by getAttributeSpellingListIndex().
|
inline |
Definition at line 229 of file AttributeCommonInfo.h.
References AS_C23.
Referenced by isStandardAttributeSyntax(), and ProcessDeclAttribute().
bool AttributeCommonInfo::isClangScope | ( | ) | const |
Definition at line 157 of file Attributes.cpp.
Referenced by handleWarnUnusedResult(), and ProcessDeclAttribute().
|
inline |
Definition at line 254 of file AttributeCommonInfo.h.
References AS_ContextSensitiveKeyword.
Referenced by CheckNullabilityTypeSpecifier().
|
inline |
Definition at line 227 of file AttributeCommonInfo.h.
References AS_CXX11.
Referenced by handleDeprecatedAttr(), handleFallThroughAttr(), handleLikely(), handleUnlikely(), handleUnusedAttr(), isStandardAttributeSyntax(), and ProcessDeclAttribute().
|
inline |
Definition at line 221 of file AttributeCommonInfo.h.
References AS_Declspec.
Referenced by handleDeprecatedAttr(), handleNakedAttr(), ProcessDeclAttribute(), and ProcessStmtAttribute().
|
inline |
Definition at line 199 of file AttributeCommonInfo.h.
Referenced by clang::Sema::DiagnoseUnknownAttribute().
|
inline |
Definition at line 246 of file AttributeCommonInfo.h.
References AS_GNU.
Referenced by handleWarnUnusedResult().
bool AttributeCommonInfo::isGNUScope | ( | ) | const |
Definition at line 152 of file Attributes.cpp.
Referenced by handleDeprecatedAttr(), and handleWarnUnusedResult().
|
inline |
Definition at line 248 of file AttributeCommonInfo.h.
References AS_ContextSensitiveKeyword, and AS_Keyword.
Referenced by isAlignas().
|
inline |
Definition at line 222 of file AttributeCommonInfo.h.
References AS_Microsoft.
Referenced by handleUuidAttr().
|
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().
|
inline |
The attribute is spelled [[]] in either C or C++ mode, including standard attributes spelled with a keyword, like alignas.
Definition at line 242 of file AttributeCommonInfo.h.
References isC23Attribute(), and isCXX11Attribute().
Referenced by checkNewAttributesAfterDef(), clang::Declarator::Declarator(), clang::FormatASTNodeDiagnosticArgument(), handleAnalyzerNoReturnAttr(), handleDeprecatedAttr(), handleNoSanitizeSpecificAttr(), handleWarnUnusedResult(), ProcessDeclAttribute(), and clang::ParsedAttr::slidesFromDeclToDeclSpecLegacyBehavior().
|
inline |
Definition at line 265 of file AttributeCommonInfo.h.
References V.
Referenced by handleNoSanitizeSpecificAttr().
|
inline |
Definition at line 193 of file AttributeCommonInfo.h.
|
inline |
Definition at line 196 of file AttributeCommonInfo.h.
std::optional< StringRef > AttributeCommonInfo::tryGetCorrectedAttrName | ( | StringRef | ScopeName, |
StringRef | AttrName, | ||
const TargetInfo & | Target, | ||
const LangOptions & | LangOpts ) const |
Definition at line 279 of file Attributes.cpp.
References clang::SimpleTypoCorrection::add(), AttrSpellingList, clang::SimpleTypoCorrection::getCorrection(), getSyntax(), clang::hasAttribute(), and clang::Target.
Referenced by clang::Sema::DiagnoseUnknownAttribute().
std::optional< StringRef > AttributeCommonInfo::tryGetCorrectedScopeName | ( | StringRef | ScopeName | ) | const |
Definition at line 266 of file Attributes.cpp.
References clang::SimpleTypoCorrection::add(), AttrScopeSpellingList, and clang::SimpleTypoCorrection::getCorrection().
Referenced by clang::Sema::DiagnoseUnknownAttribute().
|
friend |
Definition at line 278 of file AttributeCommonInfo.h.
|
staticconstexprprotected |
Definition at line 101 of file AttributeCommonInfo.h.
Referenced by clang::AttributeCommonInfo::Form::Form(), isAttributeSpellingListCalculated(), and clang::AttributeCommonInfo::Form::Keyword().