DCD icon indicating copy to clipboard operation
DCD copied to clipboard

Add ImportC support via `dmd -H`.

Open jnms-me opened this issue 2 months ago • 5 comments

This adds .c, .h and .i files (see https://dlang.org/spec/importc.html) as 'alternative' (lower priority) importable files. $DMD or dmd is called on the source file with -H to produce a .di file, which we can parse as normal. Note that .h files are only supported by current dmd master, since the merge of https://github.com/dlang/dmd/pull/21692.

jnms-me avatar Oct 26 '25 22:10 jnms-me

Thanks for your Pull Request and making D better!

This comment will automatically be updated to summarize some statistics in a few minutes.

github-actions[bot] avatar Oct 26 '25 22:10 github-actions[bot]

See https://github.com/Pure-D/serve-d/issues/328.

jnms-me avatar Oct 27 '25 00:10 jnms-me

Module auto-complete in serve-d doesn't seem to work yet. Any idea where that would be implemented?

jnms-me avatar Oct 27 '25 13:10 jnms-me

you mean auto complete for this:

import some.mod|;

?

WebFreak001 avatar Oct 27 '25 16:10 WebFreak001

Yes, that doesn't show ImportC modules yet.

jnms-me avatar Oct 27 '25 23:10 jnms-me