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.
Thread overview | ||||||
---|---|---|---|---|---|---|
|
April 19, 2021 How to skip class/function when using -HC flag to generate C++ headers? | ||||
---|---|---|---|---|
| ||||
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 Re: How to skip class/function when using -HC flag to generate C++ headers? | ||||
---|---|---|---|---|
| ||||
Posted in reply to evilrat | 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 Re: How to skip class/function when using -HC flag to generate C++ headers? | ||||
---|---|---|---|---|
| ||||
Posted in reply to MoonlightSentinel | 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. |
April 20, 2021 Re: How to skip class/function when using -HC flag to generate C++ headers? | ||||
---|---|---|---|---|
| ||||
Posted in reply to evilrat | 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. That being said, it might be worthwhile to add a flag to customize the minimum visibility for declarations (currently it only omits private declarations) |