digitalmars.D.learn - How to skip class/function when using -HC flag to generate C++
- evilrat (4/4) Apr 19 2021 It is annoying, it tries to write all derived classes where it
- MoonlightSentinel (6/7) Apr 19 2021 The header generator only translates modules passed on the
- evilrat (3/10) Apr 19 2021 Ok thanks, well, time for new dub subconfig.
- MoonlightSentinel (4/10) Apr 20 2021 That being said, it might be worthwhile to add a flag to
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
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
On Monday, 19 April 2021 at 17:37:31 UTC, MoonlightSentinel wrote:On Monday, 19 April 2021 at 16:26:20 UTC, evilrat wrote:Ok thanks, well, time for new dub subconfig. Or... maybe at least pre-build step for that specific module.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
On Monday, 19 April 2021 at 17:43:34 UTC, evilrat wrote:On Monday, 19 April 2021 at 17:37:31 UTC, MoonlightSentinel wrote:That being said, it might be worthwhile to add a flag to customize the minimum visibility for declarations (currently it only omits private declarations)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 20 2021