-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Delete irrlichttypes_bloated.h #15752
base: master
Are you sure you want to change the base?
Conversation
Compiles fine and looks good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I think I have to go back on that after running Include What You Use as suggested by Desour. My review is not comprehensive. I've attached the full output: iwyu.txt
. Look at all the files this PR touches, and check whether IWYU suggests that you add some headers, and check whether it is right (because it can still make mistakes).
In general (I think Desour also suggested this in the past), you should probably use IWYU as a decent starting point when working on such PRs.
👎 IMO there's no value in "optimizing" these five header includes. Vectors, AABB and |
Fair enough @appgurueu and @sfan5 |
Where should "using namespace irr;" be then? |
Sorry if there has been confusion, but I did not suggest to base such PRs on IWYU output.
v2d and v3d are probably very common, but aabb and color? We already have many
It's in irrlichttypes.h. Anyway, if we end up keeping this kind of prelude header, warnings need to be suppressed. https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUPragmas.md |
I guess aabb3f could be removed.
Indeed, and we shouldn't have them. I bet most are redundant anyway. |
This PR is Ready for Review.