Thread overview
How to skip class/function when using -HC flag to generate C++ headers?
Apr 19, 2021
evilrat
Apr 19, 2021
MoonlightSentinel
Apr 19, 2021
evilrat
Apr 20, 2021
MoonlightSentinel
April 19, 2021

It is annoying, it tries to write all derived classes where it only needs interface.

Or maybe there is a way to tell it whitelist/blacklist modules?

Marking class private is not an option.

April 19, 2021

On Monday, 19 April 2021 at 16:26:20 UTC, evilrat wrote:

>

Or maybe there is a way to tell it whitelist/blacklist modules?

The header generator only translates modules passed on the command line, other declarations are omitted unless they are required by another symbol.

Omit the modules from your blacklist when generating the header file (allthough that requires rerunning dmd)

April 19, 2021

On Monday, 19 April 2021 at 17:37:31 UTC, MoonlightSentinel wrote:

>

On Monday, 19 April 2021 at 16:26:20 UTC, evilrat wrote:

>

Or maybe there is a way to tell it whitelist/blacklist modules?

The header generator only translates modules passed on the command line, other declarations are omitted unless they are required by another symbol.

Omit the modules from your blacklist when generating the header file (allthough that requires rerunning dmd)

Ok thanks, well, time for new dub subconfig.
Or... maybe at least pre-build step for that specific module.

April 20, 2021

On Monday, 19 April 2021 at 17:43:34 UTC, evilrat wrote:

>

On Monday, 19 April 2021 at 17:37:31 UTC, MoonlightSentinel wrote:

>

Omit the modules from your blacklist when generating the header file (allthough that requires rerunning dmd)

Ok thanks, well, time for new dub subconfig.
Or... maybe at least pre-build step for that specific module.

That being said, it might be worthwhile to add a flag to customize the minimum visibility for declarations (currently it only omits private declarations)