-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Use forward-declarations in EditorPlugin where possible #60684
Use forward-declarations in EditorPlugin where possible #60684
Conversation
18b2693
to
f73ab09
Compare
I see some new includes in headers. I think you could get rid of them once #65062 is merged, because EditorUndoRedoManager has some include hell right now. |
Do you mean UndoRedo includes? I can remove them in the next rebase. |
I mean anything you added in E.g. this |
The files you linked aren't EditorPlugins, so I need to check if the changes are necessary at all.
EditorUndoRedoManager needs to be included (it's done above), because IIRC it fails to compile on plugin registration if it's not included. That said, there may be some unused includes now due to changes in modified files. |
That's what the PR I mentioned solves. |
Oh, I see. Yes, I can remove it once that PR is merged. |
f73ab09
to
9a9e1a6
Compare
8d96567
to
faf3eaa
Compare
@KoBeWi I fixed the comment about EditorUndoRedoManager. I also checked changes in non editor plugin files, and they are needed because they include indirectly |
I still don't get why you added new includes. If something is required indirectly, it can still be cleaned up, until everything compiles. I left one comment, but this probably applies to all new includes. I checked myself that it can be removed. |
Let me clarify, |
Well, that's the purpose of this PR, no? We'll eventually want to do it everywhere, so it's ok if it goes a bit out of scope. |
faf3eaa
to
8fe5061
Compare
8fe5061
to
ba9e619
Compare
Not really. Anyway, I changed all the includes (where possible) with forward declarations and also reorder them in some places. |
Thanks! |
Extracted from #58506.
Follow up of #57306.
Follow up of #58136.
Reduce the number of EditorPlugin includes as much as possible (3 for now) to reduce the risks of recompiling all the editor plugins (so half the editor) by doing an unrelated changed. It probably speeds up a bit the compile time.
Also add some forward declarations in touched headers.