-
Notifications
You must be signed in to change notification settings - Fork 373
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
Fix unnecessary includes in code generated headers #4132
Conversation
… all includes from _ext file to header, detect includes in copy to header blocks, rename util.hpp to warning_macros.hpp
|
||
namespace rerun { | ||
namespace archetypes { | ||
|
||
#ifdef EDIT_EXTENSION | ||
// [CODEGEN COPY TO HEADER START] | ||
#if 0 |
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.
Why not use EDIT_EXTENSION
here?
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.
I'm phasing out the EDIT_EXTENSION way of doing things. The idea was to have LSP friendly code but that requires a bit of extra maintenance and everyone editing these (myself included) gets this wrong all the time. Also, it gave the impression that there's some additional magic at work.
So instead I make these being honest now and just explicitly disable stuff.
Co-authored-by: Jeremy Leibs <[email protected]>
Co-authored-by: Jeremy Leibs <[email protected]>
What
util.hpp
towarning_macros.hpp
Oh and every _ext file I touched a bit more I cleaned up to use a less autocomplete friendly but easier to understand way of handling the extension code. Let's prefer this going forward (there's no functional difference though).
Checklist