class ExportDecl

Declaration

class ExportDecl : public Decl, public DeclContext { /* full declaration omitted */ };

Description

Represents a C++ Modules TS module export declaration. For example:

Declared at: clang/include/clang/AST/Decl.h:4603

Inherits from: Decl, DeclContext

Member Variables

private clang::SourceLocation RBraceLoc
The source location for the right brace (if valid).

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

  • public static clang::ExportDecl * Create(clang::ASTContext & C, clang::DeclContext * DC, clang::SourceLocation ExportLoc)
  • public static clang::ExportDecl * CreateDeserialized(clang::ASTContext & C, unsigned int ID)
  • private ExportDecl(clang::DeclContext * DC, clang::SourceLocation ExportLoc)
  • private virtual void anchor()
  • public static clang::ExportDecl * castFromDeclContext(const clang::DeclContext * DC)
  • public static clang::DeclContext * castToDeclContext(const clang::ExportDecl * D)
  • public static bool classof(const clang::Decl * D)
  • public static bool classofKind(clang::Decl::Kind K)
  • public clang::SourceLocation getEndLoc() const
  • public clang::SourceLocation getExportLoc() const
  • public clang::SourceLocation getRBraceLoc() const
  • public clang::SourceRange getSourceRange() const
  • public bool hasBraces() const
  • public void setRBraceLoc(clang::SourceLocation L)

Inherited from DeclContext:

Inherited from Decl:

Methods

static clang::ExportDecl* Create(
    clang::ASTContext& C,
    clang::DeclContext* DC,
    clang::SourceLocation ExportLoc)

Declared at: clang/include/clang/AST/Decl.h:4617

Parameters

clang::ASTContext& C
clang::DeclContext* DC
clang::SourceLocation ExportLoc

static clang::ExportDecl* CreateDeserialized(
    clang::ASTContext& C,
    unsigned int ID)

Declared at: clang/include/clang/AST/Decl.h:4619

Parameters

clang::ASTContext& C
unsigned int ID

ExportDecl(clang::DeclContext* DC,
           clang::SourceLocation ExportLoc)

Declared at: clang/include/clang/AST/Decl.h:4612

Parameters

clang::DeclContext* DC
clang::SourceLocation ExportLoc

virtual void anchor()

Declared at: clang/include/clang/AST/Decl.h:4604

static clang::ExportDecl* castFromDeclContext(
    const clang::DeclContext* DC)

Declared at: clang/include/clang/AST/Decl.h:4644

Parameters

const clang::DeclContext* DC

static clang::DeclContext* castToDeclContext(
    const clang::ExportDecl* D)

Declared at: clang/include/clang/AST/Decl.h:4641

Parameters

const clang::ExportDecl* D

static bool classof(const clang::Decl* D)

Declared at: clang/include/clang/AST/Decl.h:4639

Parameters

const clang::Decl* D

static bool classofKind(clang::Decl::Kind K)

Declared at: clang/include/clang/AST/Decl.h:4640

Parameters

clang::Decl::Kind K

clang::SourceLocation getEndLoc() const

Declared at: clang/include/clang/AST/Decl.h:4627

clang::SourceLocation getExportLoc() const

Declared at: clang/include/clang/AST/Decl.h:4621

clang::SourceLocation getRBraceLoc() const

Declared at: clang/include/clang/AST/Decl.h:4622

clang::SourceRange getSourceRange() const

Description

Source range that this declaration covers.

Declared at: clang/include/clang/AST/Decl.h:4635

bool hasBraces() const

Declared at: clang/include/clang/AST/Decl.h:4625

void setRBraceLoc(clang::SourceLocation L)

Declared at: clang/include/clang/AST/Decl.h:4623

Parameters

clang::SourceLocation L