class CXXConstructorDecl
Declaration
class CXXConstructorDecl : public CXXMethodDecl,
private TrailingObjects { /* full declaration omitted */ };
Description
Represents a C++ constructor within a class. For example:
Declared at: clang/include/clang/AST/DeclCXX.h:2434
Inherits from: CXXMethodDecl, TrailingObjects
Member Variables
- private clang::LazyCXXCtorInitializersPtr CtorInitializers
- \ { The arguments used to initialize the base or member.
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 CXXConstructorDecl(clang::ASTContext & C, clang::CXXRecordDecl * RD, clang::SourceLocation StartLoc, const clang::DeclarationNameInfo & NameInfo, clang::QualType T, clang::TypeSourceInfo * TInfo, clang::ExplicitSpecifier ES, bool UsesFPIntrin, bool isInline, bool isImplicitlyDeclared, clang::ConstexprSpecKind ConstexprKind, clang::InheritedConstructor Inherited, clang::Expr * TrailingRequiresClause)
- public static clang::CXXConstructorDecl * Create(clang::ASTContext & C, clang::CXXRecordDecl * RD, clang::SourceLocation StartLoc, const clang::DeclarationNameInfo & NameInfo, clang::QualType T, clang::TypeSourceInfo * TInfo, clang::ExplicitSpecifier ES, bool UsesFPIntrin, bool isInline, bool isImplicitlyDeclared, clang::ConstexprSpecKind ConstexprKind, clang::InheritedConstructor Inherited = clang::InheritedConstructor(), clang::Expr * TrailingRequiresClause = nullptr)
- public static clang::CXXConstructorDecl * CreateDeserialized(clang::ASTContext & C, unsigned int ID, uint64_t AllocKind)
- private void anchor()
- public static bool classof(const clang::Decl * D)
- public static bool classofKind(clang::Decl::Kind K)
- public clang::CXXConstructorDecl * getCanonicalDecl()
- public const clang::CXXConstructorDecl * getCanonicalDecl() const
- public clang::ExplicitSpecifier getExplicitSpecifier()
- public const clang::ExplicitSpecifier getExplicitSpecifier() const
- private clang::ExplicitSpecifier getExplicitSpecifierInternal() const
- public clang::InheritedConstructor getInheritedConstructor() const
- public unsigned int getNumCtorInitializers() const
- public clang::CXXConstructorDecl * getTargetConstructor() const
- private uint64_t getTrailingAllocKind() const
- public clang::CXXConstructorDecl::init_iterator init_begin()
- public clang::CXXConstructorDecl::init_const_iterator init_begin() const
- public clang::CXXConstructorDecl::init_iterator init_end()
- public clang::CXXConstructorDecl::init_const_iterator init_end() const
- public clang::CXXConstructorDecl::init_reverse_iterator init_rbegin()
- public clang::CXXConstructorDecl::init_const_reverse_iterator init_rbegin() const
- public clang::CXXConstructorDecl::init_reverse_iterator init_rend()
- public clang::CXXConstructorDecl::init_const_reverse_iterator init_rend() const
- public clang::CXXConstructorDecl::init_const_range inits() const
- public clang::CXXConstructorDecl::init_range inits()
- public bool isConvertingConstructor(bool AllowExplicit) const
- public bool isCopyConstructor(unsigned int & TypeQuals) const
- public bool isCopyConstructor() const
- public bool isCopyOrMoveConstructor() const
- public bool isCopyOrMoveConstructor(unsigned int & TypeQuals) const
- public bool isDefaultConstructor() const
- public bool isDelegatingConstructor() const
- public bool isExplicit() const
- public bool isInheritingConstructor() const
- public bool isMoveConstructor() const
- public bool isMoveConstructor(unsigned int & TypeQuals) const
- public bool isSpecializationCopyingObject() const
- private size_t numTrailingObjects(OverloadToken<clang::ExplicitSpecifier>) const
- private size_t numTrailingObjects(OverloadToken<clang::InheritedConstructor>) const
- public void setCtorInitializers(clang::CXXCtorInitializer ** Initializers)
- public void setExplicitSpecifier(clang::ExplicitSpecifier ES)
- public void setInheritingConstructor(bool isIC = true)
- public void setNumCtorInitializers(unsigned int numCtorInitializers)
Inherited from CXXMethodDecl:
- public Create
- public CreateDeserialized
- public addOverriddenMethod
- public begin_overridden_methods
- public classof
- public classofKind
- public end_overridden_methods
- public getCanonicalDecl
- public getCanonicalDecl
- public getCorrespondingMethodDeclaredInClass
- public getCorrespondingMethodDeclaredInClass
- public getCorrespondingMethodInClass
- public getCorrespondingMethodInClass
- public getDevirtualizedMethod
- public getDevirtualizedMethod
- public getMethodQualifiers
- public getMostRecentDecl
- public getMostRecentDecl
- public getParent
- public getParent
- public getRefQualifier
- public getThisObjectType
- public getThisObjectType
- public getThisType
- public getThisType
- public hasInlineBody
- public isConst
- public isCopyAssignmentOperator
- public isInstance
- public isLambdaStaticInvoker
- public isMoveAssignmentOperator
- public isStatic
- public isStaticOverloadedOperator
- public isUsualDeallocationFunction
- public isVirtual
- public isVolatile
- public overridden_methods
- public size_overridden_methods
Inherited from FunctionDecl:
- public Create
- public Create
- public CreateDeserialized
- public UsesFPIntrin
- public castFromDeclContext
- public castToDeclContext
- public classof
- public classofKind
- public doesDeclarationForceExternallyVisibleDefinition
- public doesThisDeclarationHaveABody
- public getAssociatedConstraints
- public getBody
- public getBody
- public getBuiltinID
- public getCallResultType
- public getCanonicalDecl
- public getCanonicalDecl
- public getConstexprKind
- public getDeclaredReturnType
- public getDefaultedFunctionInfo
- public getDefinition
- public getDefinition
- public getDependentSpecializationInfo
- public getDescribedFunctionTemplate
- public getEllipsisLoc
- public getExceptionSpecSourceRange
- public getExceptionSpecType
- public getFunctionTypeLoc
- public getInstantiatedFromDecl
- public getInstantiatedFromMemberFunction
- public getLanguageLinkage
- public getLiteralIdentifier
- public getMemberSpecializationInfo
- public getMemoryFunctionKind
- public getMinRequiredArguments
- protected getMostRecentDeclImpl
- public getMultiVersionKind
- public getNameForDiagnostic
- public getNameInfo
- protected getNextRedeclarationImpl
- public getNumParams
- public getODRHash
- public getODRHash
- public getOverloadedOperator
- public getParamDecl
- public getParamDecl
- public getParametersSourceRange
- public getPointOfInstantiation
- protected getPreviousDeclImpl
- public getPrimaryTemplate
- public getReturnType
- public getReturnTypeSourceRange
- public getSourceRange
- public getStorageClass
- public getTemplateInstantiationPattern
- public getTemplateSpecializationArgs
- public getTemplateSpecializationArgsAsWritten
- public getTemplateSpecializationInfo
- public getTemplateSpecializationKind
- public getTemplateSpecializationKindForInstantiation
- public getTemplatedKind
- public hasBody
- public hasBody
- public hasImplicitReturnZero
- public hasInheritedPrototype
- public hasOneParamOrDefaultArgs
- public hasPrototype
- public hasSkippedBody
- public hasTrivialBody
- public hasWrittenPrototype
- public instantiationIsPending
- public isCPUDispatchMultiVersion
- public isCPUSpecificMultiVersion
- public isConsteval
- public isConstexpr
- public isConstexprSpecified
- public isDefaulted
- public isDefined
- public isDefined
- public isDeleted
- public isDeletedAsWritten
- public isDestroyingOperatorDelete
- public isExplicitlyDefaulted
- public isExternC
- public isFunctionTemplateSpecialization
- public isGlobal
- public isImplicitlyInstantiable
- public isInExternCContext
- public isInExternCXXContext
- public isIneligibleOrNotSelected
- public isInlineBuiltinDeclaration
- public isInlineDefinitionExternallyVisible
- public isInlineSpecified
- public isInlined
- public isLateTemplateParsed
- public isMSExternInline
- public isMSVCRTEntryPoint
- public isMain
- public isMultiVersion
- public isNoReturn
- public isOutOfLine
- public isOverloadedOperator
- public isPure
- public isReplaceableGlobalAllocationFunction
- public isReservedGlobalPlacementOperator
- public isStatic
- public isTargetClonesMultiVersion
- public isTargetMultiVersion
- public isTemplateInstantiation
- public isThisDeclarationADefinition
- public isThisDeclarationInstantiatedFromAFriendDefinition
- public isTrivial
- public isTrivialForCall
- public isUserProvided
- public isVariadic
- public isVirtualAsWritten
- public param_begin
- public param_begin
- public param_empty
- public param_end
- public param_end
- public param_size
- public parameters
- public parameters
- public setBody
- public setConstexprKind
- public setDefaulted
- public setDefaultedFunctionInfo
- public setDeletedAsWritten
- public setDependentTemplateSpecialization
- public setDescribedFunctionTemplate
- public setExplicitlyDefaulted
- public setFunctionTemplateSpecialization
- public setHasImplicitReturnZero
- public setHasInheritedPrototype
- public setHasSkippedBody
- public setHasWrittenPrototype
- public setImplicitlyInline
- public setIneligibleOrNotSelected
- public setInlineSpecified
- public setInstantiatedFromDecl
- public setInstantiationIsPending
- public setInstantiationOfMemberFunction
- public setIsMultiVersion
- public setLateTemplateParsed
- public setLazyBody
- public setParams
- public setPreviousDeclaration
- public setPure
- public setRangeEnd
- public setStorageClass
- public setTemplateSpecializationKind
- public setTrivial
- public setTrivialForCall
- public setUsesFPIntrin
- public setUsesSEHTry
- public setVirtualAsWritten
- public setWillHaveBody
- public usesSEHTry
- public willHaveBody
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 DeclaratorDecl:
- public classof
- public classofKind
- public getBeginLoc
- public getInnerLocStart
- public getNumTemplateParameterLists
- public getOuterLocStart
- public getQualifier
- public getQualifierLoc
- public getSourceRange
- public getTemplateParameterList
- public getTrailingRequiresClause
- public getTrailingRequiresClause
- public getTypeSourceInfo
- public getTypeSpecEndLoc
- public getTypeSpecStartLoc
- public setInnerLocStart
- public setQualifierInfo
- public setTemplateParameterListsInfo
- public setTrailingRequiresClause
- public setTypeSourceInfo
Inherited from ValueDecl:
Inherited from NamedDecl:
- public classof
- public classofKind
- public declarationReplaces
- public getDeclName
- public getExplicitVisibility
- public getFormalLinkage
- public getIdentifier
- public getLinkageAndVisibility
- public getLinkageInternal
- public getMostRecentDecl
- public getMostRecentDecl
- public getName
- public getNameAsString
- public getNameForDiagnostic
- public getObjCFStringFormattingFamily
- public getQualifiedNameAsString
- public getUnderlyingDecl
- public getUnderlyingDecl
- public getVisibility
- public hasExternalFormalLinkage
- public hasLinkage
- public hasLinkageBeenComputed
- public isCXXClassMember
- public isCXXInstanceMember
- public isExternallyDeclarable
- public isExternallyVisible
- public isLinkageValid
- public isReserved
- public printName
- public printNestedNameSpecifier
- public printNestedNameSpecifier
- public printQualifiedName
- public printQualifiedName
- public setDeclName
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
¶CXXConstructorDecl(
clang::ASTContext& C,
clang::CXXRecordDecl* RD,
clang::SourceLocation StartLoc,
const clang::DeclarationNameInfo& NameInfo,
clang::QualType T,
clang::TypeSourceInfo* TInfo,
clang::ExplicitSpecifier ES,
bool UsesFPIntrin,
bool isInline,
bool isImplicitlyDeclared,
clang::ConstexprSpecKind ConstexprKind,
clang::InheritedConstructor Inherited,
clang::Expr* TrailingRequiresClause)
CXXConstructorDecl(
clang::ASTContext& C,
clang::CXXRecordDecl* RD,
clang::SourceLocation StartLoc,
const clang::DeclarationNameInfo& NameInfo,
clang::QualType T,
clang::TypeSourceInfo* TInfo,
clang::ExplicitSpecifier ES,
bool UsesFPIntrin,
bool isInline,
bool isImplicitlyDeclared,
clang::ConstexprSpecKind ConstexprKind,
clang::InheritedConstructor Inherited,
clang::Expr* TrailingRequiresClause)
Declared at: clang/include/clang/AST/DeclCXX.h:2446
Parameters
- clang::ASTContext& C
- clang::CXXRecordDecl* RD
- clang::SourceLocation StartLoc
- const clang::DeclarationNameInfo& NameInfo
- clang::QualType T
- clang::TypeSourceInfo* TInfo
- clang::ExplicitSpecifier ES
- bool UsesFPIntrin
- bool isInline
- bool isImplicitlyDeclared
- clang::ConstexprSpecKind ConstexprKind
- clang::InheritedConstructor Inherited
- clang::Expr* TrailingRequiresClause
¶static clang::CXXConstructorDecl* Create(
clang::ASTContext& C,
clang::CXXRecordDecl* RD,
clang::SourceLocation StartLoc,
const clang::DeclarationNameInfo& NameInfo,
clang::QualType T,
clang::TypeSourceInfo* TInfo,
clang::ExplicitSpecifier ES,
bool UsesFPIntrin,
bool isInline,
bool isImplicitlyDeclared,
clang::ConstexprSpecKind ConstexprKind,
clang::InheritedConstructor Inherited =
clang::InheritedConstructor(),
clang::Expr* TrailingRequiresClause = nullptr)
static clang::CXXConstructorDecl* Create(
clang::ASTContext& C,
clang::CXXRecordDecl* RD,
clang::SourceLocation StartLoc,
const clang::DeclarationNameInfo& NameInfo,
clang::QualType T,
clang::TypeSourceInfo* TInfo,
clang::ExplicitSpecifier ES,
bool UsesFPIntrin,
bool isInline,
bool isImplicitlyDeclared,
clang::ConstexprSpecKind ConstexprKind,
clang::InheritedConstructor Inherited =
clang::InheritedConstructor(),
clang::Expr* TrailingRequiresClause = nullptr)
Declared at: clang/include/clang/AST/DeclCXX.h:2490
Parameters
- clang::ASTContext& C
- clang::CXXRecordDecl* RD
- clang::SourceLocation StartLoc
- const clang::DeclarationNameInfo& NameInfo
- clang::QualType T
- clang::TypeSourceInfo* TInfo
- clang::ExplicitSpecifier ES
- bool UsesFPIntrin
- bool isInline
- bool isImplicitlyDeclared
- clang::ConstexprSpecKind ConstexprKind
- clang::InheritedConstructor Inherited = clang::InheritedConstructor()
- clang::Expr* TrailingRequiresClause = nullptr
¶static clang::CXXConstructorDecl*
CreateDeserialized(clang::ASTContext& C,
unsigned int ID,
uint64_t AllocKind)
static clang::CXXConstructorDecl*
CreateDeserialized(clang::ASTContext& C,
unsigned int ID,
uint64_t AllocKind)
Declared at: clang/include/clang/AST/DeclCXX.h:2487
Parameters
- clang::ASTContext& C
- unsigned int ID
- uint64_t AllocKind
¶void anchor()
void anchor()
Declared at: clang/include/clang/AST/DeclCXX.h:2454
¶static bool classof(const clang::Decl* D)
static bool classof(const clang::Decl* D)
Declared at: clang/include/clang/AST/DeclCXX.h:2687
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/DeclCXX.h:2688
Parameters
- clang::Decl::Kind K
¶clang::CXXConstructorDecl* getCanonicalDecl()
clang::CXXConstructorDecl* getCanonicalDecl()
Description
Retrieves the "canonical" declaration of the given declaration.
Declared at: clang/include/clang/AST/DeclCXX.h:2679
¶const clang::CXXConstructorDecl*
getCanonicalDecl() const
const clang::CXXConstructorDecl*
getCanonicalDecl() const
Declared at: clang/include/clang/AST/DeclCXX.h:2682
¶clang::ExplicitSpecifier getExplicitSpecifier()
clang::ExplicitSpecifier getExplicitSpecifier()
Declared at: clang/include/clang/AST/DeclCXX.h:2508
¶const clang::ExplicitSpecifier
getExplicitSpecifier() const
const clang::ExplicitSpecifier
getExplicitSpecifier() const
Declared at: clang/include/clang/AST/DeclCXX.h:2511
¶clang::ExplicitSpecifier
getExplicitSpecifierInternal() const
clang::ExplicitSpecifier
getExplicitSpecifierInternal() const
Declared at: clang/include/clang/AST/DeclCXX.h:2463
¶clang::InheritedConstructor
getInheritedConstructor() const
clang::InheritedConstructor
getInheritedConstructor() const
Description
Get the constructor that this inheriting constructor is based on.
Declared at: clang/include/clang/AST/DeclCXX.h:2674
¶unsigned int getNumCtorInitializers() const
unsigned int getNumCtorInitializers() const
Description
Determine the number of arguments used to initialize the member or base.
Declared at: clang/include/clang/AST/DeclCXX.h:2571
¶clang::CXXConstructorDecl* getTargetConstructor()
const
clang::CXXConstructorDecl* getTargetConstructor()
const
Description
When this constructor delegates to another, retrieve the target.
Declared at: clang/include/clang/AST/DeclCXX.h:2595
¶uint64_t getTrailingAllocKind() const
uint64_t getTrailingAllocKind() const
Declared at: clang/include/clang/AST/DeclCXX.h:2477
¶clang::CXXConstructorDecl::init_iterator
init_begin()
clang::CXXConstructorDecl::init_iterator
init_begin()
Description
Retrieve an iterator to the first initializer.
Declared at: clang/include/clang/AST/DeclCXX.h:2533
¶clang::CXXConstructorDecl::init_const_iterator
init_begin() const
clang::CXXConstructorDecl::init_const_iterator
init_begin() const
Description
Retrieve an iterator to the first initializer.
Declared at: clang/include/clang/AST/DeclCXX.h:2539
¶clang::CXXConstructorDecl::init_iterator
init_end()
clang::CXXConstructorDecl::init_iterator
init_end()
Description
Retrieve an iterator past the last initializer.
Declared at: clang/include/clang/AST/DeclCXX.h:2542
¶clang::CXXConstructorDecl::init_const_iterator
init_end() const
clang::CXXConstructorDecl::init_const_iterator
init_end() const
Description
Retrieve an iterator past the last initializer.
Declared at: clang/include/clang/AST/DeclCXX.h:2547
¶clang::CXXConstructorDecl::init_reverse_iterator
init_rbegin()
clang::CXXConstructorDecl::init_reverse_iterator
init_rbegin()
Declared at: clang/include/clang/AST/DeclCXX.h:2555
¶clang::CXXConstructorDecl::
init_const_reverse_iterator
init_rbegin() const
clang::CXXConstructorDecl::
init_const_reverse_iterator
init_rbegin() const
Declared at: clang/include/clang/AST/DeclCXX.h:2558
¶clang::CXXConstructorDecl::init_reverse_iterator
init_rend()
clang::CXXConstructorDecl::init_reverse_iterator
init_rend()
Declared at: clang/include/clang/AST/DeclCXX.h:2562
¶clang::CXXConstructorDecl::
init_const_reverse_iterator
init_rend() const
clang::CXXConstructorDecl::
init_const_reverse_iterator
init_rend() const
Declared at: clang/include/clang/AST/DeclCXX.h:2565
¶clang::CXXConstructorDecl::init_const_range
inits() const
clang::CXXConstructorDecl::init_const_range
inits() const
Declared at: clang/include/clang/AST/DeclCXX.h:2528
¶clang::CXXConstructorDecl::init_range inits()
clang::CXXConstructorDecl::init_range inits()
Declared at: clang/include/clang/AST/DeclCXX.h:2527
¶bool isConvertingConstructor(
bool AllowExplicit) const
bool isConvertingConstructor(
bool AllowExplicit) const
Description
Whether this constructor is a converting constructor (C++ [class.conv.ctor]), which can be used for user-defined conversions.
Declared at: clang/include/clang/AST/DeclCXX.h:2654
Parameters
- bool AllowExplicit
¶bool isCopyConstructor(
unsigned int& TypeQuals) const
bool isCopyConstructor(
unsigned int& TypeQuals) const
Description
Whether this constructor is a copy constructor (C++ [class.copy]p2, which can be used to copy the class. \p TypeQuals will be set to the qualifiers on the argument type. For example, \p TypeQuals would be set to \c Qualifiers::Const for the following copy constructor:
Declared at: clang/include/clang/AST/DeclCXX.h:2615
Parameters
- unsigned int& TypeQuals
¶bool isCopyConstructor() const
bool isCopyConstructor() const
Description
Whether this constructor is a copy constructor (C++ [class.copy]p2, which can be used to copy the class.
Declared at: clang/include/clang/AST/DeclCXX.h:2620
¶bool isCopyOrMoveConstructor() const
bool isCopyOrMoveConstructor() const
Description
Determine whether this a copy or move constructor.
Declared at: clang/include/clang/AST/DeclCXX.h:2646
¶bool isCopyOrMoveConstructor(
unsigned int& TypeQuals) const
bool isCopyOrMoveConstructor(
unsigned int& TypeQuals) const
Description
Determine whether this is a copy or move constructor.
Declared at: clang/include/clang/AST/DeclCXX.h:2643
Parameters
- unsigned int& TypeQuals
- Will be set to the type qualifiers on the reference parameter, if in fact this is a copy or move constructor.
¶bool isDefaultConstructor() const
bool isDefaultConstructor() const
Description
Whether this constructor is a default constructor (C++ [class.ctor]p5), which can be used to default-initialize a class of this type.
Declared at: clang/include/clang/AST/DeclCXX.h:2600
¶bool isDelegatingConstructor() const
bool isDelegatingConstructor() const
Description
Determine whether this constructor is a delegating constructor.
Declared at: clang/include/clang/AST/DeclCXX.h:2589
¶bool isExplicit() const
bool isExplicit() const
Description
Return true if the declartion is already resolved to be explicit.
Declared at: clang/include/clang/AST/DeclCXX.h:2516
¶bool isInheritingConstructor() const
bool isInheritingConstructor() const
Description
Determine whether this is an implicit constructor synthesized to model a call to a constructor inherited from a base class.
Declared at: clang/include/clang/AST/DeclCXX.h:2663
¶bool isMoveConstructor() const
bool isMoveConstructor() const
Description
Determine whether this constructor is a move constructor (C++11 [class.copy]p3), which can be used to move values of the class.
Declared at: clang/include/clang/AST/DeclCXX.h:2634
¶bool isMoveConstructor(
unsigned int& TypeQuals) const
bool isMoveConstructor(
unsigned int& TypeQuals) const
Description
Determine whether this constructor is a move constructor (C++11 [class.copy]p3), which can be used to move values of the class.
Declared at: clang/include/clang/AST/DeclCXX.h:2630
Parameters
- unsigned int& TypeQuals
- If this constructor is a move constructor, will be set to the type qualifiers on the referent of the first parameter's type.
¶bool isSpecializationCopyingObject() const
bool isSpecializationCopyingObject() const
Description
Determine whether this is a member template specialization that would copy the object to itself. Such constructors are never used to copy an object.
Declared at: clang/include/clang/AST/DeclCXX.h:2659
¶size_t numTrailingObjects(
OverloadToken<clang::ExplicitSpecifier>) const
size_t numTrailingObjects(
OverloadToken<clang::ExplicitSpecifier>) const
Declared at: clang/include/clang/AST/DeclCXX.h:2459
Parameters
- OverloadToken<clang::ExplicitSpecifier>
¶size_t numTrailingObjects(
OverloadToken<clang::InheritedConstructor>)
const
size_t numTrailingObjects(
OverloadToken<clang::InheritedConstructor>)
const
Declared at: clang/include/clang/AST/DeclCXX.h:2456
Parameters
- OverloadToken<clang::InheritedConstructor>
¶void setCtorInitializers(
clang::CXXCtorInitializer** Initializers)
void setCtorInitializers(
clang::CXXCtorInitializer** Initializers)
Declared at: clang/include/clang/AST/DeclCXX.h:2584
Parameters
- clang::CXXCtorInitializer** Initializers
¶void setExplicitSpecifier(
clang::ExplicitSpecifier ES)
void setExplicitSpecifier(
clang::ExplicitSpecifier ES)
Declared at: clang/include/clang/AST/DeclCXX.h:2497
Parameters
¶void setInheritingConstructor(bool isIC = true)
void setInheritingConstructor(bool isIC = true)
Description
State that this is an implicit constructor synthesized to model a call to a constructor inherited from a base class.
Declared at: clang/include/clang/AST/DeclCXX.h:2669
Parameters
- bool isIC = true
¶void setNumCtorInitializers(
unsigned int numCtorInitializers)
void setNumCtorInitializers(
unsigned int numCtorInitializers)
Declared at: clang/include/clang/AST/DeclCXX.h:2575
Parameters
- unsigned int numCtorInitializers