www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - How to skip class/function when using -HC flag to generate C++

reply evilrat <evilrat666 gmail.com> writes:
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.
Apr 19 2021
parent reply MoonlightSentinel <moonlightsentinel disroot.org> writes:
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)
Apr 19 2021
parent reply evilrat <evilrat666 gmail.com> writes:
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.
Apr 19 2021
parent MoonlightSentinel <moonlightsentinel disroot.org> writes:
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)
Apr 20 2021