Skip to content

[SUGGESTION] Organize code in translation units #705

Open
@fknauf

Description

@fknauf

Hi,

I attempted to poke around the cppfront compiler, and the moment I added a second translation unit, I ran into linker errors (symbol redefinitions) because there are many functions with external linkage in the existing header files. I felt it'd make my life easier to organize the code into several translation units and add a small build system, so I did it.

At the moment it's mostly a small CMakeLists.txt to build the main executable and translation units for all the external-linkage functions I stumbled over (no automated testing yet), but before I put any more work into it I wanted to sound you out on whether this is something you'd be at all interested in.

You can check out what I have so far under https://github.com/fknauf/cppfront/tree/cmake_refactor . Please let me know if this is at all interesting to you, and if it is what would be needed for a PR.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions