[ros-users] [Discourse.ros.org] [Next Generation ROS] Adding clang thread safety analysis for ROS2 core packages
Thomas Moulard via Discourse.ros.org
ros.discourse at gmail.com
Wed Feb 27 02:15:03 UTC 2019
We have two ways IMHO:
1. Keep TSA optional and write a colcon mixin to enable this behavior.
2. Inject the statements you quoted everywhere using the `*-extras.cmake` mechanism.
My feeling is that, keeping this opt-in per-package will be challenging because mixing the clang and GNU standard libraries is probably unsafe. So it would need to be a global on/off flag. 2. is most likely too brutal of a change so 1. could be the best option.
[Visit Topic](https://discourse.ros.org/t/adding-clang-thread-safety-analysis-for-ros2-core-packages/7930/13) or reply to this email to respond.
More information about the ros-users