class UsingEnumDecl
Declaration
class UsingEnumDecl : public BaseUsingDecl, public Mergeable { /* full declaration omitted */ };
Description
Represents a C++ using-enum-declaration. For example:
Declared at: clang/include/clang/AST/DeclCXX.h:3612
Inherits from: BaseUsingDecl, Mergeable
Member Variables
- private clang::SourceLocation UsingLocation
- The source location of the 'using' keyword itself.
- private clang::SourceLocation EnumLocation
- Location of the 'enum' keyword.
- private clang::EnumDecl* Enum
- The enum
Inherited from Decl:
- protected NextInContextAndBits
- protected Access
- protected FromASTFile
- protected IdentifierNamespace
- protected CacheValidAndLinkage
Method Overview
- public static clang::UsingEnumDecl * Create(clang::ASTContext & C, clang::DeclContext * DC, clang::SourceLocation UsingL, clang::SourceLocation EnumL, clang::SourceLocation NameL, clang::EnumDecl * ED)
- public static clang::UsingEnumDecl * CreateDeserialized(clang::ASTContext & C, unsigned int ID)
- private UsingEnumDecl(clang::DeclContext * DC, clang::DeclarationName DN, clang::SourceLocation UL, clang::SourceLocation EL, clang::SourceLocation NL, clang::EnumDecl * ED)
- private void anchor()
- public static bool classof(const clang::Decl * D)
- public static bool classofKind(clang::Decl::Kind K)
- public clang::UsingEnumDecl * getCanonicalDecl()
- public const clang::UsingEnumDecl * getCanonicalDecl() const
- public clang::EnumDecl * getEnumDecl() const
- public clang::SourceLocation getEnumLoc() const
- public clang::SourceRange getSourceRange() const
- public clang::SourceLocation getUsingLoc() const
- public void setEnumLoc(clang::SourceLocation L)
- public void setUsingLoc(clang::SourceLocation L)
Inherited from BaseUsingDecl:
- public addShadowDecl
- public classof
- public classofKind
- protected getShadowFlag
- public removeShadowDecl
- protected setShadowFlag
- public shadow_begin
- public shadow_end
- public shadow_size
- public shadows
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
¶static clang::UsingEnumDecl* Create(
clang::ASTContext& C,
clang::DeclContext* DC,
clang::SourceLocation UsingL,
clang::SourceLocation EnumL,
clang::SourceLocation NameL,
clang::EnumDecl* ED)
static clang::UsingEnumDecl* Create(
clang::ASTContext& C,
clang::DeclContext* DC,
clang::SourceLocation UsingL,
clang::SourceLocation EnumL,
clang::SourceLocation NameL,
clang::EnumDecl* ED)
Declared at: clang/include/clang/AST/DeclCXX.h:3644
Parameters
- clang::ASTContext& C
- clang::DeclContext* DC
- clang::SourceLocation UsingL
- clang::SourceLocation EnumL
- clang::SourceLocation NameL
- clang::EnumDecl* ED
¶static clang::UsingEnumDecl* CreateDeserialized(
clang::ASTContext& C,
unsigned int ID)
static clang::UsingEnumDecl* CreateDeserialized(
clang::ASTContext& C,
unsigned int ID)
Declared at: clang/include/clang/AST/DeclCXX.h:3648
Parameters
- clang::ASTContext& C
- unsigned int ID
¶UsingEnumDecl(clang::DeclContext* DC,
clang::DeclarationName DN,
clang::SourceLocation UL,
clang::SourceLocation EL,
clang::SourceLocation NL,
clang::EnumDecl* ED)
UsingEnumDecl(clang::DeclContext* DC,
clang::DeclarationName DN,
clang::SourceLocation UL,
clang::SourceLocation EL,
clang::SourceLocation NL,
clang::EnumDecl* ED)
Declared at: clang/include/clang/AST/DeclCXX.h:3622
Parameters
- clang::DeclContext* DC
- clang::DeclarationName DN
- clang::SourceLocation UL
- clang::SourceLocation EL
- clang::SourceLocation NL
- clang::EnumDecl* ED
¶void anchor()
void anchor()
Declared at: clang/include/clang/AST/DeclCXX.h:3627
¶static bool classof(const clang::Decl* D)
static bool classof(const clang::Decl* D)
Declared at: clang/include/clang/AST/DeclCXX.h:3660
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:3661
Parameters
- clang::Decl::Kind K
¶clang::UsingEnumDecl* getCanonicalDecl()
clang::UsingEnumDecl* getCanonicalDecl()
Description
Retrieves the canonical declaration of this declaration.
Declared at: clang/include/clang/AST/DeclCXX.h:3653
¶const clang::UsingEnumDecl* getCanonicalDecl()
const
const clang::UsingEnumDecl* getCanonicalDecl()
const
Declared at: clang/include/clang/AST/DeclCXX.h:3656
¶clang::EnumDecl* getEnumDecl() const
clang::EnumDecl* getEnumDecl() const
Declared at: clang/include/clang/AST/DeclCXX.h:3642
¶clang::SourceLocation getEnumLoc() const
clang::SourceLocation getEnumLoc() const
Description
The source location of the 'enum' keyword.
Declared at: clang/include/clang/AST/DeclCXX.h:3638
¶clang::SourceRange getSourceRange() const
clang::SourceRange getSourceRange() const
Description
Source range that this declaration covers.
Declared at: clang/include/clang/AST/DeclCXX.h:3650
¶clang::SourceLocation getUsingLoc() const
clang::SourceLocation getUsingLoc() const
Description
The source location of the 'using' keyword.
Declared at: clang/include/clang/AST/DeclCXX.h:3634
¶void setEnumLoc(clang::SourceLocation L)
void setEnumLoc(clang::SourceLocation L)
Declared at: clang/include/clang/AST/DeclCXX.h:3639
Parameters
¶void setUsingLoc(clang::SourceLocation L)
void setUsingLoc(clang::SourceLocation L)
Declared at: clang/include/clang/AST/DeclCXX.h:3635