Skip to content

Commit

Permalink
fix forward declarations: they must be exported too
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyG committed Oct 9, 2023
1 parent 9e4aa51 commit d339719
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/reflifc/src/Declaration.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import reflifc.ViewOf;

import ifc;

namespace reflifc
export namespace reflifc
{
struct AliasDeclaration;
struct ScopeDeclaration;
Expand All @@ -32,7 +32,7 @@ namespace reflifc
struct Concept;
struct IntrinsicDeclaration;

export struct Declaration
struct Declaration
{
Declaration(ifc::File const* ifc, ifc::DeclIndex index)
: ifc_(ifc)
Expand Down
6 changes: 3 additions & 3 deletions lib/reflifc/src/TupleView.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ namespace reflifc
ifc::File const* ifc_;
};

struct Expression;
struct Syntax;
struct Type;
export struct Expression;
export struct Syntax;
export struct Type;

struct TupleExpressionTraits
{
Expand Down
4 changes: 2 additions & 2 deletions lib/reflifc/src/Type.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export module reflifc:Type;

import ifc;

namespace reflifc
export namespace reflifc
{
struct ArrayType;
struct BaseType;
Expand All @@ -25,7 +25,7 @@ namespace reflifc
struct Expression;
struct PathExpression;

export struct Type
struct Type
{
Type(ifc::File const* ifc, ifc::TypeIndex index)
: ifc_(ifc)
Expand Down
4 changes: 2 additions & 2 deletions lib/reflifc/src/decl/Variable.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ export module reflifc:Variable;

import ifc;

namespace reflifc
export namespace reflifc
{
struct Declaration;
struct Expression;
struct Name;
struct Type;

export struct Variable
struct Variable
{
Variable(ifc::File const* ifc, ifc::VariableDeclaration const& var)
: ifc_(ifc)
Expand Down

0 comments on commit d339719

Please sign in to comment.