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:

Inherited from NamedDecl:

Inherited from Decl:

Methods

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)

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)

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()

Declared at: clang/include/clang/AST/DeclCXX.h:3627

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)

Declared at: clang/include/clang/AST/DeclCXX.h:3661

Parameters

clang::Decl::Kind K

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

Declared at: clang/include/clang/AST/DeclCXX.h:3656

clang::EnumDecl* getEnumDecl() const

Declared at: clang/include/clang/AST/DeclCXX.h:3642

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

Description

Source range that this declaration covers.

Declared at: clang/include/clang/AST/DeclCXX.h:3650

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)

Declared at: clang/include/clang/AST/DeclCXX.h:3639

Parameters

clang::SourceLocation L

void setUsingLoc(clang::SourceLocation L)

Declared at: clang/include/clang/AST/DeclCXX.h:3635

Parameters

clang::SourceLocation L