rclcpp
rclcpp copied to clipboard
get_parameter variants with noexcept specifier
Feature request
Node::get_parameter() variants, that throw no exceptions (2 functions args and all get_parameter_or) should be declared with the noexcept specifier.
Feature description
Functions that (as explicitly stated in the docs) throw no exception should be declared noexcept.
Static analyzers (like clang-tidy with bugprone-exception-escape) complain about possible exceptions in get_parameter() if the surrounding function should not throw exceptions.