clang API Documentation
#include <AttributeList.h>
AttributeList - Represents GCC's __attribute__ declaration. There are 4 forms of this construct...they are:
1: __attribute__(( const )). ParmName/Args/NumArgs will all be unused. 2: __attribute__(( mode(byte) )). ParmName used, Args/NumArgs unused. 3: __attribute__(( format(printf, 1, 2) )). ParmName/Args/NumArgs all used. 4: __attribute__(( aligned(16) )). ParmName is unused, Args/Num used.
Definition at line 54 of file AttributeList.h.
Definition at line 162 of file AttributeList.h.
| arg_iterator clang::AttributeList::arg_begin | ( | ) | const [inline] |
Definition at line 239 of file AttributeList.h.
Referenced by handleNonNullAttr(), and handleOwnershipAttr().
| arg_iterator clang::AttributeList::arg_end | ( | ) | const [inline] |
Definition at line 243 of file AttributeList.h.
Referenced by handleNonNullAttr(), and handleOwnershipAttr().
| Expr* clang::AttributeList::getArg | ( | unsigned | Arg | ) | const [inline] |
getArg - Return the specified argument.
Definition at line 204 of file AttributeList.h.
Referenced by checkAttrArgsAreLockableObjs(), clang::Sema::CheckCallingConvAttr(), clang::Sema::CheckRegparmAttr(), fillAttributedTypeLoc(), HandleAddressSpaceTypeAttribute(), handleAliasAttr(), handleAlignedAttr(), handleAnnotateAttr(), handleAttrWithMessage(), handleCallConvAttr(), handleConstructorAttr(), handleDestructorAttr(), handleExtVectorTypeAttr(), HandleExtVectorTypeAttr(), handleFormatArgAttr(), handleFormatAttr(), handleInitPriorityAttr(), handleLaunchBoundsAttr(), handleLockReturnedAttr(), HandleMSP430InterruptAttr(), HandleNeonVectorTypeAttr(), HandleOpenCLImageAccessAttribute(), handleOwnershipAttr(), handleReqdWorkGroupSize(), handleSectionAttr(), handleSentinelAttr(), handleTrylockFunAttr(), handleUuidAttr(), HandleVectorSizeAttr(), handleVisibilityAttr(), and handleWeakRefAttr().
| const AvailabilityChange& clang::AttributeList::getAvailabilityDeprecated | ( | ) | const [inline] |
Definition at line 252 of file AttributeList.h.
References getKind().
Referenced by handleAvailabilityAttr().
| const AvailabilityChange& clang::AttributeList::getAvailabilityIntroduced | ( | ) | const [inline] |
Definition at line 247 of file AttributeList.h.
References getKind().
Referenced by handleAvailabilityAttr().
| const AvailabilityChange& clang::AttributeList::getAvailabilityObsoleted | ( | ) | const [inline] |
Definition at line 257 of file AttributeList.h.
References getKind().
Referenced by handleAvailabilityAttr().
| Kind clang::AttributeList::getKind | ( | ) | const [inline] |
Definition at line 190 of file AttributeList.h.
Referenced by clang::Sema::CheckCallingConvAttr(), checkUnusedDeclAttributes(), diagnoseBadTypeAttribute(), fillAttributedTypeLoc(), getAvailabilityDeprecated(), getAvailabilityIntroduced(), getAvailabilityObsoleted(), getMessageExpr(), getUnavailableLoc(), handleCallConvAttr(), handleCFTransferAttr(), handleFunctionTypeAttr(), handleNSConsumedAttr(), handleNSReturnsRetainedAttr(), handleObjCPointerTypeAttr(), handleOwnershipAttr(), isKnownDeclSpecAttr(), ProcessInheritableDeclAttr(), ProcessNonInheritableDeclAttr(), ProcessStmtAttribute(), and processTypeAttrs().
| AttributeList::Kind AttributeList::getKind | ( | const IdentifierInfo * | Name, |
| const IdentifierInfo * | Scope | ||
| ) | [static] |
Definition at line 103 of file AttributeList.cpp.
References clang::IdentifierInfo::getName().
| SourceLocation clang::AttributeList::getLoc | ( | ) | const [inline] |
Definition at line 171 of file AttributeList.h.
References clang::SourceRange::getBegin().
Referenced by checkAttrArgsAreLockableObjs(), checkAttributeAtLeastNumArgs(), checkAttributeNumArgs(), clang::Sema::CheckCallingConvAttr(), checkForLockableRecord(), checkIBOutletCommon(), clang::Sema::CheckNoReturnAttr(), clang::Sema::CheckRegparmAttr(), checkUnusedDeclAttributes(), diagnoseBadTypeAttribute(), fillAttributedTypeLoc(), handleAcquireOrderAttr(), HandleAddressSpaceTypeAttribute(), handleAliasAttr(), handleAlignedAttr(), handleAlwaysInlineAttr(), handleAnalyzerNoReturnAttr(), handleArcWeakrefUnavailableAttr(), handleAttrWithMessage(), handleBlocksAttr(), handleCallConvAttr(), handleCleanupAttr(), handleColdAttr(), handleCommonAttr(), handleConstantAttr(), handleConstAttr(), handleConstructorAttr(), handleDependencyAttr(), handleDestructorAttr(), handleDeviceAttr(), HandleDLLExportAttr(), HandleDLLImportAttr(), handleExtVectorTypeAttr(), HandleExtVectorTypeAttr(), handleFormatArgAttr(), handleFormatAttr(), handleFunctionTypeAttr(), handleGlobalAttr(), handleGNUInlineAttr(), handleGuardedByAttr(), handleGuardedVarAttr(), handleHostAttr(), handleHotAttr(), handleIBAction(), handleIBOutletCollection(), handleInitPriorityAttr(), handleLaunchBoundsAttr(), handleLockableAttr(), handleLockFunAttr(), handleLockReturnedAttr(), handleLocksExcludedAttr(), handleLocksRequiredAttr(), handleMallocAttr(), HandleMBlazeInterruptHandlerAttr(), HandleMBlazeSaveVolatilesAttr(), handleModeAttr(), HandleMSP430InterruptAttr(), handleMsStructAttr(), handleNakedAttr(), HandleNeonVectorTypeAttr(), handleNoAddressSafetyAttr(), handleNoCommonAttr(), handleNoDebugAttr(), handleNoInlineAttr(), handleNoInstrumentFunctionAttr(), handleNonNullAttr(), handleNoReturnAttr(), handleNoThreadSafetyAttr(), handleNothrowAttr(), handleObjCExceptionAttr(), handleObjCGCTypeAttr(), handleObjCMethodFamilyAttr(), handleObjCNSObject(), handleObjCOwnershipTypeAttr(), handleObjCPreciseLifetimeAttr(), handleObjCRequiresPropertyDefsAttr(), handleObjCReturnsInnerPointerAttr(), handleObjCRootClassAttr(), HandleOpenCLImageAccessAttribute(), handleOverloadableAttr(), handleOwnershipAttr(), handlePackedAttr(), handleRegparmAttr(), handleReqdWorkGroupSize(), handleReturnsTwiceAttr(), handleSentinelAttr(), handleSharedAttr(), handleTransparentUnionAttr(), handleTrylockFunAttr(), handleUnlockFunAttr(), handleUnusedAttr(), handleUsedAttr(), handleUuidAttr(), handleVecReturnAttr(), HandleVectorSizeAttr(), handleVisibilityAttr(), handleWarnUnusedResult(), handleWeakAttr(), handleWeakImportAttr(), handleWeakRefAttr(), HandleX86ForceAlignArgPointerAttr(), clang::Sema::ProcessDeclAttributeList(), and threadSafetyCheckIsPointer().
| const Expr* clang::AttributeList::getMessageExpr | ( | ) | const [inline] |
Definition at line 267 of file AttributeList.h.
References getKind().
Referenced by handleAvailabilityAttr().
| IdentifierInfo* clang::AttributeList::getName | ( | ) | const [inline] |
Definition at line 170 of file AttributeList.h.
Referenced by checkAttrArgsAreLockableObjs(), checkForLockableRecord(), checkIBOutletCommon(), checkUnusedDeclAttributes(), diagnoseBadTypeAttribute(), handleAcquireOrderAttr(), handleAlwaysInlineAttr(), handleAnalyzerNoReturnAttr(), handleCallConvAttr(), handleCFTransferAttr(), handleColdAttr(), handleCommonAttr(), handleConstantAttr(), handleConstructorAttr(), handleDependencyAttr(), handleDestructorAttr(), handleDeviceAttr(), HandleDLLExportAttr(), HandleDLLImportAttr(), handleFormatArgAttr(), handleFormatAttr(), handleGlobalAttr(), handleGNUInlineAttr(), handleGuardedByAttr(), handleGuardedVarAttr(), handleHostAttr(), handleHotAttr(), handleIBAction(), handleInitPriorityAttr(), handleLaunchBoundsAttr(), handleLockableAttr(), handleLockFunAttr(), handleLockReturnedAttr(), handleLocksExcludedAttr(), handleLocksRequiredAttr(), handleMsStructAttr(), handleNakedAttr(), handleNoAddressSafetyAttr(), handleNoCommonAttr(), handleNoDebugAttr(), handleNoInlineAttr(), handleNoInstrumentFunctionAttr(), handleNonNullAttr(), handleNoReturnAttr(), handleNoThreadSafetyAttr(), handleNSBridgedAttr(), handleNSConsumedAttr(), handleNSConsumesSelfAttr(), handleNSReturnsRetainedAttr(), handleObjCOwnershipAttr(), handleObjCOwnershipTypeAttr(), handleObjCPreciseLifetimeAttr(), handleObjCReturnsInnerPointerAttr(), handleOwnershipAttr(), handlePackedAttr(), handleRegparmAttr(), handleReturnsTwiceAttr(), handleSentinelAttr(), handleSharedAttr(), handleTransparentUnionAttr(), handleTrylockFunAttr(), handleUnlockFunAttr(), handleUnusedAttr(), handleUsedAttr(), handleVecReturnAttr(), handleWarnUnusedResult(), handleWeakAttr(), handleWeakImportAttr(), handleWeakRefAttr(), HandleX86ForceAlignArgPointerAttr(), clang::Sema::ParsedFreeStandingDeclSpec(), ProcessStmtAttribute(), and threadSafetyCheckIsPointer().
| AttributeList* clang::AttributeList::getNext | ( | ) | const [inline] |
Definition at line 193 of file AttributeList.h.
Referenced by clang::ParsedAttributes::add(), clang::ParsedAttributes::addAll(), clang::addAttributeLists(), checkUnusedDeclAttributes(), distributeTypeAttrsFromDeclarator(), fillAttributedTypeLoc(), GetFullTypeForDeclarator(), inferARCWriteback(), clang::Sema::ParsedFreeStandingDeclSpec(), clang::Sema::ProcessAccessDeclAttributeList(), clang::Sema::ProcessDeclAttributeList(), clang::Sema::ProcessStmtAttributes(), processTypeAttrs(), spliceAttrOutOfList(), takeDeclAttributes(), and transferARCOwnershipToDeclaratorChunk().
| unsigned clang::AttributeList::getNumArgs | ( | ) | const [inline] |
getNumArgs - Return the number of actual arguments to this attribute.
Definition at line 197 of file AttributeList.h.
References NumArgs.
Referenced by checkAttrArgsAreLockableObjs(), checkAttributeAtLeastNumArgs(), checkAttributeNumArgs(), clang::Sema::CheckCallingConvAttr(), clang::Sema::CheckRegparmAttr(), HandleAddressSpaceTypeAttribute(), handleAliasAttr(), handleAlignedAttr(), handleArcWeakrefUnavailableAttr(), handleAttrWithMessage(), handleBlocksAttr(), handleCleanupAttr(), handleConstructorAttr(), handleDestructorAttr(), handleDeviceAttr(), HandleDLLExportAttr(), HandleDLLImportAttr(), HandleExtVectorTypeAttr(), handleFormatAttr(), handleFunctionTypeAttr(), handleIBOutletCollection(), handleInitPriorityAttr(), handleLaunchBoundsAttr(), HandleMBlazeInterruptHandlerAttr(), HandleMBlazeSaveVolatilesAttr(), HandleMSP430InterruptAttr(), HandleNeonVectorTypeAttr(), handleObjCGCTypeAttr(), handleObjCMethodFamilyAttr(), handleObjCNSObject(), handleObjCRequiresPropertyDefsAttr(), handleObjCRootClassAttr(), HandleOpenCLImageAccessAttribute(), handleOverloadableAttr(), handleOwnershipAttr(), handleSentinelAttr(), HandleVectorSizeAttr(), handleWeakRefAttr(), and HandleX86ForceAlignArgPointerAttr().
| SourceLocation clang::AttributeList::getParameterLoc | ( | ) | const [inline] |
Definition at line 179 of file AttributeList.h.
Referenced by fillAttributedTypeLoc(), handleAvailabilityAttr(), handleCleanupAttr(), handleIBOutletCollection(), handleNSBridgedAttr(), and handleObjCMethodFamilyAttr().
| IdentifierInfo* clang::AttributeList::getParameterName | ( | ) | const [inline] |
Definition at line 178 of file AttributeList.h.
Referenced by clang::Sema::CheckCallingConvAttr(), diagnoseBadTypeAttribute(), handleAvailabilityAttr(), handleBlocksAttr(), handleCleanupAttr(), handleExtVectorTypeAttr(), HandleExtVectorTypeAttr(), handleFormatAttr(), handleIBOutletCollection(), handleModeAttr(), handleNSBridgedAttr(), handleObjCGCTypeAttr(), handleObjCMethodFamilyAttr(), handleObjCOwnershipTypeAttr(), and handleOwnershipAttr().
| SourceRange clang::AttributeList::getRange | ( | ) | const [inline] |
Definition at line 172 of file AttributeList.h.
Referenced by checkUnusedDeclAttributes(), handleAcquireOrderAttr(), handleAliasAttr(), handleAlignedAttr(), handleAlwaysInlineAttr(), handleAnalyzerNoReturnAttr(), handleAnnotateAttr(), handleArcWeakrefUnavailableAttr(), handleAttrWithMessage(), handleAvailabilityAttr(), handleBlocksAttr(), handleCallConvAttr(), handleCFTransferAttr(), handleCleanupAttr(), handleColdAttr(), handleCommonAttr(), handleConstantAttr(), handleConstAttr(), handleConstructorAttr(), handleDestructorAttr(), handleDeviceAttr(), HandleDLLExportAttr(), HandleDLLImportAttr(), handleFallThroughAttr(), handleFormatArgAttr(), handleFormatAttr(), handleGlobalAttr(), handleGNUInlineAttr(), handleGuardedByAttr(), handleGuardedVarAttr(), handleHostAttr(), handleHotAttr(), handleIBAction(), handleIBOutlet(), handleIBOutletCollection(), handleInitPriorityAttr(), handleLaunchBoundsAttr(), handleLockableAttr(), handleLockFunAttr(), handleLockReturnedAttr(), handleLocksExcludedAttr(), handleLocksRequiredAttr(), handleMallocAttr(), handleMayAliasAttr(), handleModeAttr(), handleMsStructAttr(), handleNakedAttr(), handleNoAddressSafetyAttr(), handleNoCommonAttr(), handleNoDebugAttr(), handleNoInlineAttr(), handleNoInstrumentFunctionAttr(), handleNonNullAttr(), handleNoReturnAttr(), handleNoThreadSafetyAttr(), handleNothrowAttr(), handleNSBridgedAttr(), handleNSConsumedAttr(), handleNSConsumesSelfAttr(), handleNSReturnsRetainedAttr(), handleObjCExceptionAttr(), handleObjCMethodFamilyAttr(), handleObjCNSObject(), handleObjCOwnershipAttr(), handleObjCPreciseLifetimeAttr(), handleObjCRequiresPropertyDefsAttr(), handleObjCReturnsInnerPointerAttr(), handleObjCRootClassAttr(), handleOpenCLKernelAttr(), handleOverloadableAttr(), handlePackedAttr(), handlePureAttr(), handleRegparmAttr(), handleReqdWorkGroupSize(), handleReturnsTwiceAttr(), handleSectionAttr(), handleSentinelAttr(), handleSharedAttr(), handleTransparentUnionAttr(), handleTrylockFunAttr(), handleUnlockFunAttr(), handleUnusedAttr(), handleUsedAttr(), handleUuidAttr(), handleVecReturnAttr(), handleVisibilityAttr(), handleWarnUnusedResult(), handleWeakAttr(), handleWeakImportAttr(), handleWeakRefAttr(), HandleX86ForceAlignArgPointerAttr(), and ProcessStmtAttribute().
| SourceLocation clang::AttributeList::getScopeLoc | ( | ) | const [inline] |
Definition at line 176 of file AttributeList.h.
Referenced by clang::Sema::ParsedFreeStandingDeclSpec().
| IdentifierInfo* clang::AttributeList::getScopeName | ( | ) | const [inline] |
Definition at line 175 of file AttributeList.h.
| SourceLocation clang::AttributeList::getUnavailableLoc | ( | ) | const [inline] |
Definition at line 262 of file AttributeList.h.
References getKind().
Referenced by handleAvailabilityAttr().
| bool clang::AttributeList::hasParameterOrArguments | ( | ) | const [inline] |
hasParameterOrArguments - Return true if this attribute has a parameter, or has a non empty argument expression list.
Definition at line 201 of file AttributeList.h.
References NumArgs.
Referenced by clang::Sema::CheckNoReturnAttr(), handleAlwaysInlineAttr(), handleConstantAttr(), handleConstAttr(), handleMallocAttr(), handleNothrowAttr(), handleReturnsTwiceAttr(), handleUnusedAttr(), handleUsedAttr(), and handleWeakAttr().
| bool clang::AttributeList::hasScope | ( | ) | const [inline] |
Definition at line 174 of file AttributeList.h.
| bool clang::AttributeList::isCXX0XAttribute | ( | ) | const [inline] |
Definition at line 182 of file AttributeList.h.
Referenced by handleAnalyzerNoReturnAttr().
| bool clang::AttributeList::isDeclspecAttribute | ( | ) | const [inline] |
Definition at line 181 of file AttributeList.h.
Referenced by ProcessDeclAttribute().
| bool clang::AttributeList::isInvalid | ( | ) | const [inline] |
Definition at line 184 of file AttributeList.h.
Referenced by clang::Sema::CheckCallingConvAttr(), clang::Sema::CheckRegparmAttr(), handleAcquireOrderAttr(), handleCommonAttr(), handleGuardedByAttr(), handleGuardedVarAttr(), handleLockableAttr(), handleLockFunAttr(), handleLockReturnedAttr(), handleLocksExcludedAttr(), handleLocksRequiredAttr(), handleNoAddressSafetyAttr(), handleNoCommonAttr(), handleNoThreadSafetyAttr(), handleOpenCLKernelAttr(), handleTrylockFunAttr(), handleUnlockFunAttr(), ProcessDeclAttribute(), and processTypeAttrs().
| bool clang::AttributeList::isUsedAsTypeAttr | ( | ) | const [inline] |
Definition at line 187 of file AttributeList.h.
Referenced by checkUnusedDeclAttributes(), and takeDeclAttributes().
| void clang::AttributeList::setInvalid | ( | bool | b = true | ) | const [inline] |
Definition at line 185 of file AttributeList.h.
Referenced by clang::Sema::CheckCallingConvAttr(), clang::Sema::CheckNoReturnAttr(), clang::Sema::CheckRegparmAttr(), HandleAddressSpaceTypeAttribute(), handleCallConvAttr(), handleFunctionTypeAttr(), handleInitPriorityAttr(), HandleNeonVectorTypeAttr(), handleObjCGCTypeAttr(), handleObjCMethodFamilyAttr(), handleObjCOwnershipTypeAttr(), HandleOpenCLImageAccessAttribute(), and HandleVectorSizeAttr().
| void clang::AttributeList::setNext | ( | AttributeList * | N | ) | [inline] |
Definition at line 194 of file AttributeList.h.
Referenced by clang::ParsedAttributes::add(), clang::ParsedAttributes::addAll(), clang::addAttributeLists(), spliceAttrIntoList(), spliceAttrOutOfList(), and takeDeclAttributes().
| void clang::AttributeList::setUsedAsTypeAttr | ( | ) | [inline] |
Definition at line 188 of file AttributeList.h.
Referenced by processTypeAttrs().
friend class AttributeFactory [friend] |
Definition at line 159 of file AttributeList.h.
friend class AttributePool [friend] |
Definition at line 158 of file AttributeList.h.