class BaseUsingDecl
Declaration
class BaseUsingDecl : public NamedDecl { /* full declaration omitted */ };
Description
Represents a C++ declaration that introduces decls from somewhere else. It provides a set of the shadow decls so introduced.
Declared at: clang/include/clang/AST/DeclCXX.h:3317
Inherits from: NamedDecl
Member Variables
- private llvm::PointerIntPair<UsingShadowDecl*, 1, bool> FirstUsingShadow
- The bool member of the pair is a bool flag a derived type may use (UsingDecl makes use of it).
Inherited from Decl:
- protected NextInContextAndBits
- protected Access
- protected FromASTFile
- protected IdentifierNamespace
- protected CacheValidAndLinkage
Method Overview
- protected BaseUsingDecl(clang::Decl::Kind DK, clang::DeclContext * DC, clang::SourceLocation L, clang::DeclarationName N)
- public void addShadowDecl(clang::UsingShadowDecl * S)
- private void anchor()
- public static bool classof(const clang::Decl * D)
- public static bool classofKind(clang::Decl::Kind K)
- protected bool getShadowFlag() const
- public void removeShadowDecl(clang::UsingShadowDecl * S)
- protected void setShadowFlag(bool V)
- public clang::BaseUsingDecl::shadow_iterator shadow_begin() const
- public clang::BaseUsingDecl::shadow_iterator shadow_end() const
- public unsigned int shadow_size() const
- public clang::BaseUsingDecl::shadow_range shadows() const
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
¶BaseUsingDecl(clang::Decl::Kind DK,
clang::DeclContext* DC,
clang::SourceLocation L,
clang::DeclarationName N)
BaseUsingDecl(clang::Decl::Kind DK,
clang::DeclContext* DC,
clang::SourceLocation L,
clang::DeclarationName N)
Declared at: clang/include/clang/AST/DeclCXX.h:3326
Parameters
- clang::Decl::Kind DK
- clang::DeclContext* DC
- clang::SourceLocation L
- clang::DeclarationName N
¶void addShadowDecl(clang::UsingShadowDecl* S)
void addShadowDecl(clang::UsingShadowDecl* S)
Declared at: clang/include/clang/AST/DeclCXX.h:3399
Parameters
¶void anchor()
void anchor()
Declared at: clang/include/clang/AST/DeclCXX.h:3330
¶static bool classof(const clang::Decl* D)
static bool classof(const clang::Decl* D)
Declared at: clang/include/clang/AST/DeclCXX.h:3402
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:3403
Parameters
- clang::Decl::Kind K
¶bool getShadowFlag() const
bool getShadowFlag() const
Description
A bool flag for use by a derived type
Declared at: clang/include/clang/AST/DeclCXX.h:3334
¶void removeShadowDecl(clang::UsingShadowDecl* S)
void removeShadowDecl(clang::UsingShadowDecl* S)
Declared at: clang/include/clang/AST/DeclCXX.h:3400
Parameters
¶void setShadowFlag(bool V)
void setShadowFlag(bool V)
Description
A bool flag a derived type may set
Declared at: clang/include/clang/AST/DeclCXX.h:3337
Parameters
- bool V
¶clang::BaseUsingDecl::shadow_iterator
shadow_begin() const
clang::BaseUsingDecl::shadow_iterator
shadow_begin() const
Declared at: clang/include/clang/AST/DeclCXX.h:3387
¶clang::BaseUsingDecl::shadow_iterator shadow_end()
const
clang::BaseUsingDecl::shadow_iterator shadow_end()
const
Declared at: clang/include/clang/AST/DeclCXX.h:3391
¶unsigned int shadow_size() const
unsigned int shadow_size() const
Description
Return the number of shadowed declarations associated with this using declaration.
Declared at: clang/include/clang/AST/DeclCXX.h:3395
¶clang::BaseUsingDecl::shadow_range shadows() const
clang::BaseUsingDecl::shadow_range shadows() const
Declared at: clang/include/clang/AST/DeclCXX.h:3383