Repository navigation
Enhancement/use hpp for headers - #3113
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
|
This pull request is in conflict. Could you fix it @TSNoble? |
|
You should merge this so my email inbox can rest again 😆 |
|
I've applied your suggestions now (and tidied up the script a little more, and made the output a little nicer). I'd also be in favour of merging this soon so we can deal with any merge conflicts with other PRs quickly, but I also understand if you want to wait until the maintainer meeting tomorrow |
There was a problem hiding this comment.
I suggest adding a bit more context to the autogenerated message at the top of the h files. Your changelog notes are very descriptive, how about we use the:
/* This file was autogenerated by create_deprecated_headers.py */
becomes
/* All MoveIt 2 headers have been updated to use the .hpp extension. .h headers are now autogenerated with a deprecation warning, and may be removed in future releases. Please update your imports to use the .hpp headers. See https://github.com/moveit/moveit2/pull/3113 for details. */
Thanks for the suggestion. I've modified the script (with a few tweaks to the formatting for readability & consistency with the BSD-3 comments), and have regenerated the header files. After this is merged, I'll likely look at tackling the outstanding headers listed in #857 as smaller, more targeted, (and more review-friendly) PRs 😄 |
|
Ah yes I need to merge the other PR first. One sec |
|
I'm gonna go ahead and merge this since the deprecation warning in #3139 just snuck in today and I want to keep things moving for now. |
based on PR moveit/moveit2#3113
--------- Co-authored-by: Tom Noble <[email protected]>
--------- Co-authored-by: Tom Noble <[email protected]>
Description
First of all, apologies for the huge PR 😅
.hfiles from.hppfiles with a deprecation warning (see comments)The main aim of this PR is to tackle a good portion of the low-hanging fruit so that subsequent (and less intrusive) PRs can be raised for specific types of imports.
I've left alone the following types of imports:
The import style seems quite inconsistent, I've seen "", <>, and relative imports used for internal headers
I'm a bit concerned about breaking downstream projects which import these headers.
I wonder if it'd be useful to add a script to the CI that generates a .h for every .hpp, which simply imports the .hpp and prints a deprecation warning?
Something like the following for all files "x.h":
Checklist