-
Notifications
You must be signed in to change notification settings - Fork 69
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 up documentation build for rmw when using rosdoc2 #313
Conversation
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Is there a way to make doxygen ignore that instead of renaming *_t to *_s. |
I followed ros2/rcutils#333 precedent here, but perhaps /// \cond flag
typedef
/// \endcond
struct type_name_t {
}
/// \cond flag
type_name_t
/// \endcond
; Though I do find duplicate type definitions awkward albeit legal.
Well, I've found some cases. Specially in |
That seems to be enough precedent, we will have to bump the major number next release. |
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
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.
This all looks really good to me with green CI.
Thanks for iterating!
@@ -202,7 +202,7 @@ rmw_topic_endpoint_info_set_endpoint_type( | |||
rmw_ret_t | |||
rmw_topic_endpoint_info_set_gid( | |||
rmw_topic_endpoint_info_t * topic_endpoint_info, | |||
const uint8_t gid[], | |||
const uint8_t * gid, |
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 this change? (just curious)
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.
WARNING: doxygenfunction: Unable to resolve function "rmw_topic_endpoint_info_set_gid" with arguments (rmw_topic_endpoint_info_t*, const uint8_t, size_t) in doxygen xml output for project "rmw Doxygen Project" from directory: ...
Potential matches:
- rmw_ret_t rmw_topic_endpoint_info_set_gid(rmw_topic_endpoint_info_t *topic_endpoint_info, const uint8_t gid[], size_t size)
It appears exhale
(i.e. the thing that turns Doxygen XML into Sphinx compliant ReST) fails to pick up a trailing []
as a type modifier. I haven't dug into it deep enough to find out why.
@@ -30,7 +30,7 @@ extern "C" | |||
#include "rmw/visibility_control.h" | |||
|
|||
/// Define publisher/subscription events | |||
typedef enum rmw_event_type_t | |||
typedef enum rmw_event_type_e |
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.
Will this break rmw implementations?
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.
Any RMW implementation that was using a "bare" rmw_event_type_t
before should be fine; we are still defining that as part of the typedef. If an RMW implementation was using enum rmw_event_type_t
, then it would now be broken.
I don't think we have any users of that in the core, but I will request a full CI run before we merge this. There might be third-party ones that use enum rmw_event_type_t
, so I think a release note is in order for this change.
Alright, all green ! |
This pull request has been mentioned on ROS Discourse. There might be relevant details there: https://discourse.ros.org/t/ros-2-tsc-meeting-minutes-2021-9-16/22372/1 |
Precisely what the title says. This patch:
[]
tokens for leading*
tokens for pointer argument types.RCUTILS_DEPRECATED_WITH_MSG()
macrosRMW_PUBLIC_TYPE
macros.