Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option for switching off code generation for #included files #422

Open
okellogg opened this issue Nov 28, 2024 · 1 comment
Open

Option for switching off code generation for #included files #422

okellogg opened this issue Nov 28, 2024 · 1 comment

Comments

@okellogg
Copy link

On projects with many fine-grained IDL files (e.g. one type per file) and many #include interdependencies, I notice that fastddsgen generates the code for the included files each time it runs.
Imagine 50 IDL files that all #include a "common.idl", then the C++ files for common.idl will be generated 50 times.
Also, users might have their own IDL dependency management where determining the need for regenerating is done outside fastddsgen.

To save superfluous regenerations, it would be useful to have a command line option to switch off code generation for included files.

@shan-weiqiang
Copy link

i have the same issue, and this will cause bugs, when current file have types with same names in the #includes files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants