Just to flesh out how C++ modules impact this.  

Modules break the assumption that there must be a declaration in a header file 
for a symbol to be used in another file, the module is exported from a body 
file and the declarations from the modules are imported by an `import` 
statement, no header needed as the compiler does the work.

So if we set the filescope/local/whatever flag for `.cpp` files that will make 
the symbols exported with the module invisible elsewhere, but they should be 
visible.

Its not just an academic C++ exercise, since this is basically how modules work 
in most languages if we can solve it for C++ we can extend the heuristic to 
other languages too.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3490#issuecomment-1541019441
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/3490/[email protected]>

Reply via email to