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

Simplify includes in generated c++ code #1621

Merged
merged 17 commits into from
Dec 26, 2023

Conversation

bernardnormier
Copy link
Member

This PR simplifies the includes generated by slice2cpp.

It's now either #include <Ice/Ice.h> or nothing (when the Slice file specifies [[cpp:no-default-include]].

I also added an ICE_BUILDING_GENERATED_CODE that skips a large part of Ice/Ice.h when building generated c++ code.

This PR is layered over #1619, so I recommend reviewing the difference:
https://github.com/bernardnormier/ice/compare/xlocalgen-cpp...bernardnormier:ice:simplify-gen-include?expand=1

Copy link
Member

@pepone pepone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but there is a test failure with python

@bernardnormier bernardnormier merged commit 28dd68b into zeroc-ice:main Dec 26, 2023
2 checks passed
@bernardnormier bernardnormier deleted the simplify-gen-include branch May 10, 2024 23:40
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

Successfully merging this pull request may close these issues.

2 participants