class CapturedDecl
Declaration
class CapturedDecl : public Decl,
public DeclContext,
private TrailingObjects { /* full declaration omitted */ };
Description
Represents the body of a CapturedStmt, and serves as its DeclContext.
Declared at: clang/include/clang/AST/Decl.h:4408
Inherits from: Decl, DeclContext, TrailingObjects
Member Variables
- private unsigned int NumParams
- The number of parameters to the outlined function.
- private unsigned int ContextParam
- The position of context parameter in list of parameters.
- private llvm::PointerIntPair<Stmt*, 1, bool> BodyAndNothrow
- The body of the outlined function.
Inherited from DeclContext:
- protected
- protected FirstDecl = nullptr
- protected LastDecl = nullptr
Inherited from Decl:
- protected NextInContextAndBits
- protected Access
- protected FromASTFile
- protected IdentifierNamespace
- protected CacheValidAndLinkage
Method Overview
- private CapturedDecl(clang::DeclContext * DC, unsigned int NumParams)
- public static clang::CapturedDecl * Create(clang::ASTContext & C, clang::DeclContext * DC, unsigned int NumParams)
- public static clang::CapturedDecl * CreateDeserialized(clang::ASTContext & C, unsigned int ID, unsigned int NumParams)
- public static clang::CapturedDecl * castFromDeclContext(const clang::DeclContext * DC)
- public static clang::DeclContext * castToDeclContext(const clang::CapturedDecl * D)
- public static bool classof(const clang::Decl * D)
- public static bool classofKind(clang::Decl::Kind K)
- public clang::Stmt * getBody() const
- public clang::ImplicitParamDecl * getContextParam() const
- public unsigned int getContextParamPosition() const
- public unsigned int getNumParams() const
- public clang::ImplicitParamDecl * getParam(unsigned int i) const
- private clang::ImplicitParamDecl *const * getParams() const
- private clang::ImplicitParamDecl ** getParams()
- public bool isNothrow() const
- protected size_t numTrailingObjects(OverloadToken<clang::ImplicitParamDecl>)
- public clang::CapturedDecl::param_iterator param_begin() const
- public clang::CapturedDecl::param_iterator param_end() const
- public MutableArrayRef<clang::ImplicitParamDecl *> parameters()
- public ArrayRef<clang::ImplicitParamDecl *> parameters() const
- public void setBody(clang::Stmt * B)
- public void setContextParam(unsigned int i, clang::ImplicitParamDecl * P)
- public void setNothrow(bool Nothrow = true)
- public void setParam(unsigned int i, clang::ImplicitParamDecl * P)
Inherited from DeclContext:
- protected BuildDeclChain
- public Encloses
- public Equals
- public InEnclosingNamespaceSetOf
- public addDecl
- public addDeclInternal
- public addHiddenDecl
- public buildLookup
- public classof
- public classof
- public collectAllContexts
- public containsDecl
- public containsDeclAndLoad
- public ddiags
- public decls
- public decls_begin
- public decls_empty
- public decls_end
- public dumpDeclContext
- public dumpLookups
- public dumpLookups
- public getDeclKind
- public getDeclKindName
- public getEnclosingNamespaceContext
- public getEnclosingNamespaceContext
- public getExternCContext
- public getInnermostBlockDecl
- public getLexicalParent
- public getLexicalParent
- public getLookupParent
- public getLookupParent
- public getLookupPtr
- public getNonClosureAncestor
- public getNonClosureAncestor
- public getNonTransparentContext
- public getNonTransparentContext
- public getOuterLexicalRecordContext
- public getOuterLexicalRecordContext
- public getParent
- public getParent
- public getParentASTContext
- public getPrimaryContext
- public getPrimaryContext
- public getRedeclContext
- public getRedeclContext
- public hasExternalLexicalStorage
- public hasExternalVisibleStorage
- public isClosure
- public isDeclInLexicalTraversal
- public isDependentContext
- public isExternCContext
- public isExternCXXContext
- public isFileContext
- public isFunctionOrMethod
- public isInlineNamespace
- public isLookupContext
- public isNamespace
- public isObjCContainer
- public isRecord
- public isStdNamespace
- public isTranslationUnit
- public isTransparentContext
- public localUncachedLookup
- public lookup
- public lookups
- public lookups_begin
- public lookups_end
- public makeDeclVisibleInContext
- public noload_decls
- public noload_decls_begin
- public noload_decls_end
- public noload_lookup
- public noload_lookups
- public noload_lookups_begin
- public noload_lookups_end
- public removeDecl
- public setHasExternalLexicalStorage
- public setHasExternalVisibleStorage
- public setMustBuildLookupTable
- public setUseQualifiedLookup
- public shouldUseQualifiedLookup
- public using_directives
Inherited from Decl:
- public EnableStatistics
- public PrintStats
- public add
- public addAttr
- public attr_begin
- public attr_end
- public attrs
- public canBeWeakImported
- public castFromDeclContext
- public castToDeclContext
- public classofKind
- public dropAttr
- public dropAttrs
- public dump
- public dump
- public dumpColor
- public getASTContext
- protected getASTMutationListener
- public getAccess
- public getAccessUnsafe
- public getAsFunction
- public getAsFunction
- public getAttr
- public getAttrs
- public getAttrs
- public getAvailability
- public getBeginLoc
- public getBody
- public getBodyRBrace
- protected getCachedLinkage
- public getCanonicalDecl
- public getCanonicalDecl
- public getDeclContext
- public getDeclContext
- public getDeclKindName
- public getDefiningAttr
- public getDescribedTemplate
- public getDescribedTemplateParams
- public getEndLoc
- public getExternalSourceSymbolAttr
- public getFriendObjectKind
- public getFunctionType
- public getGlobalID
- public getID
- public getIdentifierNamespace
- public getIdentifierNamespaceForKind
- public getImportedOwningModule
- public getKind
- public getLangOpts
- public getLexicalDeclContext
- public getLexicalDeclContext
- public getLocalOwningModule
- public getLocation
- public getMaxAlignment
- public getModuleOwnershipKind
- public getMostRecentDecl
- public getMostRecentDecl
- protected getMostRecentDeclImpl
- public getNextDeclInContext
- public getNextDeclInContext
- protected getNextRedeclarationImpl
- public getNonClosureContext
- public getNonClosureContext
- public getOwningModule
- public getOwningModuleForLinkage
- public getOwningModuleID
- public getParentFunctionOrMethod
- public getParentFunctionOrMethod
- public getPreviousDecl
- public getPreviousDecl
- protected getPreviousDeclImpl
- public getSourceRange
- public getTemplateDepth
- public getTranslationUnitDecl
- public getTranslationUnitDecl
- public getVersionIntroduced
- public hasAttr
- public hasAttrs
- public hasBody
- protected hasCachedLinkage
- public hasDefiningAttr
- protected hasLocalOwningModuleStorage
- public hasOwningModule
- public hasTagIdentifierNamespace
- public isCanonicalDecl
- public isDefinedOutsideFunctionOrMethod
- public isDeprecated
- public isDiscardedInGlobalModuleFragment
- public isFirstDecl
- public isFromASTFile
- public isFunctionOrFunctionTemplate
- public isImplicit
- public isInAnonymousNamespace
- public isInExportDeclContext
- public isInIdentifierNamespace
- public isInLocalScopeForInstantiation
- public isInStdNamespace
- public isInvalidDecl
- public isInvisibleOutsideTheOwningModule
- public isLocalExternDecl
- public isModulePrivate
- public isOutOfLine
- public isParameterPack
- public isReachable
- public isReferenced
- public isTagIdentifierNamespace
- public isTemplateDecl
- public isTemplateParameter
- public isTemplateParameterPack
- public isTemplated
- public isThisDeclarationReferenced
- public isTopLevelDeclInObjCContainer
- public isUnavailable
- public isUnconditionallyVisible
- public isUsed
- public isWeakImported
- public markUsed
- public print
- public print
- public printGroup
- public redecls
- public redecls_begin
- public redecls_end
- public setAccess
- public setAttrs
- protected setCachedLinkage
- public setDeclContext
- public setFromASTFile
- public setImplicit
- public setInvalidDecl
- public setIsUsed
- public setLexicalDeclContext
- public setLocalExternDecl
- public setLocalOwningModule
- public setLocation
- public setModuleOwnershipKind
- protected setModulePrivate
- public setNonMemberOperator
- public setObjectOfFriendDecl
- public setOwningModuleID
- public setReferenced
- public setTopLevelDeclInObjCContainer
- public setVisibleDespiteOwningModule
- public specific_attr_begin
- public specific_attr_end
- public specific_attrs
- protected updateOutOfDate
Methods
¶CapturedDecl(clang::DeclContext* DC,
unsigned int NumParams)
CapturedDecl(clang::DeclContext* DC,
unsigned int NumParams)
Declared at: clang/include/clang/AST/Decl.h:4427
Parameters
- clang::DeclContext* DC
- unsigned int NumParams
¶static clang::CapturedDecl* Create(
clang::ASTContext& C,
clang::DeclContext* DC,
unsigned int NumParams)
static clang::CapturedDecl* Create(
clang::ASTContext& C,
clang::DeclContext* DC,
unsigned int NumParams)
Declared at: clang/include/clang/AST/Decl.h:4442
Parameters
- clang::ASTContext& C
- clang::DeclContext* DC
- unsigned int NumParams
¶static clang::CapturedDecl* CreateDeserialized(
clang::ASTContext& C,
unsigned int ID,
unsigned int NumParams)
static clang::CapturedDecl* CreateDeserialized(
clang::ASTContext& C,
unsigned int ID,
unsigned int NumParams)
Declared at: clang/include/clang/AST/Decl.h:4444
Parameters
- clang::ASTContext& C
- unsigned int ID
- unsigned int NumParams
¶static clang::CapturedDecl* castFromDeclContext(
const clang::DeclContext* DC)
static clang::CapturedDecl* castFromDeclContext(
const clang::DeclContext* DC)
Declared at: clang/include/clang/AST/Decl.h:4498
Parameters
- const clang::DeclContext* DC
¶static clang::DeclContext* castToDeclContext(
const clang::CapturedDecl* D)
static clang::DeclContext* castToDeclContext(
const clang::CapturedDecl* D)
Declared at: clang/include/clang/AST/Decl.h:4495
Parameters
- const clang::CapturedDecl* D
¶static bool classof(const clang::Decl* D)
static bool classof(const clang::Decl* D)
Declared at: clang/include/clang/AST/Decl.h:4493
Parameters
- const clang::Decl* D
¶static bool classofKind(clang::Decl::Kind K)
static bool classofKind(clang::Decl::Kind K)
Declared at: clang/include/clang/AST/Decl.h:4494
Parameters
- clang::Decl::Kind K
¶clang::Stmt* getBody() const
clang::Stmt* getBody() const
Description
getBody - If this Decl represents a declaration for a body of code, such as a function or method definition, this method returns the top-level Stmt* of that body. Otherwise this method returns null.
Declared at: clang/include/clang/AST/Decl.h:4447
¶clang::ImplicitParamDecl* getContextParam() const
clang::ImplicitParamDecl* getContextParam() const
Description
Retrieve the parameter containing captured variables.
Declared at: clang/include/clang/AST/Decl.h:4473
¶unsigned int getContextParamPosition() const
unsigned int getContextParamPosition() const
Declared at: clang/include/clang/AST/Decl.h:4482
¶unsigned int getNumParams() const
unsigned int getNumParams() const
Declared at: clang/include/clang/AST/Decl.h:4453
¶clang::ImplicitParamDecl* getParam(
unsigned int i) const
clang::ImplicitParamDecl* getParam(
unsigned int i) const
Declared at: clang/include/clang/AST/Decl.h:4455
Parameters
- unsigned int i
¶clang::ImplicitParamDecl* const* getParams() const
clang::ImplicitParamDecl* const* getParams() const
Declared at: clang/include/clang/AST/Decl.h:4429
¶clang::ImplicitParamDecl** getParams()
clang::ImplicitParamDecl** getParams()
Declared at: clang/include/clang/AST/Decl.h:4433
¶bool isNothrow() const
bool isNothrow() const
Declared at: clang/include/clang/AST/Decl.h:4450
¶size_t numTrailingObjects(
OverloadToken<clang::ImplicitParamDecl>)
size_t numTrailingObjects(
OverloadToken<clang::ImplicitParamDecl>)
Declared at: clang/include/clang/AST/Decl.h:4413
Parameters
- OverloadToken<clang::ImplicitParamDecl>
¶clang::CapturedDecl::param_iterator param_begin()
const
clang::CapturedDecl::param_iterator param_begin()
const
Description
Retrieve an iterator pointing to the first parameter decl.
Declared at: clang/include/clang/AST/Decl.h:4488
¶clang::CapturedDecl::param_iterator param_end()
const
clang::CapturedDecl::param_iterator param_end()
const
Description
Retrieve an iterator one past the last parameter decl.
Declared at: clang/include/clang/AST/Decl.h:4490
¶MutableArrayRef<clang::ImplicitParamDecl*>
parameters()
MutableArrayRef<clang::ImplicitParamDecl*>
parameters()
Declared at: clang/include/clang/AST/Decl.h:4468
¶ArrayRef<clang::ImplicitParamDecl*> parameters()
const
ArrayRef<clang::ImplicitParamDecl*> parameters()
const
Declared at: clang/include/clang/AST/Decl.h:4465
¶void setBody(clang::Stmt* B)
void setBody(clang::Stmt* B)
Declared at: clang/include/clang/AST/Decl.h:4448
Parameters
- clang::Stmt* B
¶void setContextParam(unsigned int i,
clang::ImplicitParamDecl* P)
void setContextParam(unsigned int i,
clang::ImplicitParamDecl* P)
Declared at: clang/include/clang/AST/Decl.h:4477
Parameters
- unsigned int i
- clang::ImplicitParamDecl* P
¶void setNothrow(bool Nothrow = true)
void setNothrow(bool Nothrow = true)
Declared at: clang/include/clang/AST/Decl.h:4451
Parameters
- bool Nothrow = true
¶void setParam(unsigned int i,
clang::ImplicitParamDecl* P)
void setParam(unsigned int i,
clang::ImplicitParamDecl* P)
Declared at: clang/include/clang/AST/Decl.h:4459
Parameters
- unsigned int i
- clang::ImplicitParamDecl* P