diff --git a/rosidl_runtime_cpp/include/rosidl_runtime_cpp/action_type_support_decl.hpp b/rosidl_runtime_cpp/include/rosidl_runtime_cpp/action_type_support_decl.hpp index 193567855..11c8d98d7 100644 --- a/rosidl_runtime_cpp/include/rosidl_runtime_cpp/action_type_support_decl.hpp +++ b/rosidl_runtime_cpp/include/rosidl_runtime_cpp/action_type_support_decl.hpp @@ -27,6 +27,7 @@ namespace rosidl_runtime_cpp * \return Function handler for the action's typesupport. */ template +[[nodiscard]] const rosidl_action_type_support_t * get_action_type_support_handle(); } // namespace rosidl_runtime_cpp diff --git a/rosidl_runtime_cpp/include/rosidl_runtime_cpp/bounded_vector.hpp b/rosidl_runtime_cpp/include/rosidl_runtime_cpp/bounded_vector.hpp index f2fa3c0b5..cad016f1b 100644 --- a/rosidl_runtime_cpp/include/rosidl_runtime_cpp/bounded_vector.hpp +++ b/rosidl_runtime_cpp/include/rosidl_runtime_cpp/bounded_vector.hpp @@ -714,6 +714,7 @@ class BoundedVector * \param y A %BoundedVector of the same type as @a x * \return True if the size and elements of the vectors are equal */ + [[nodiscard]] friend bool operator==( const BoundedVector & x, @@ -734,6 +735,7 @@ class BoundedVector * \param y A %BoundedVector of the same type as @a x * @return True if @a x is lexicographically less than @a y */ + [[nodiscard]] friend bool operator<( const BoundedVector & x, @@ -743,6 +745,7 @@ class BoundedVector } /// Based on operator== + [[nodiscard]] friend bool operator!=( const BoundedVector & x, @@ -752,6 +755,7 @@ class BoundedVector } /// Based on operator< + [[nodiscard]] friend bool operator>( const BoundedVector & x, @@ -761,6 +765,7 @@ class BoundedVector } /// Based on operator< + [[nodiscard]] friend bool operator<=( const BoundedVector & x, @@ -770,6 +775,7 @@ class BoundedVector } /// Based on operator< + [[nodiscard]] friend bool operator>=( const BoundedVector & x, diff --git a/rosidl_runtime_cpp/include/rosidl_runtime_cpp/message_type_support_decl.hpp b/rosidl_runtime_cpp/include/rosidl_runtime_cpp/message_type_support_decl.hpp index 69cf8de39..c6c9e4735 100644 --- a/rosidl_runtime_cpp/include/rosidl_runtime_cpp/message_type_support_decl.hpp +++ b/rosidl_runtime_cpp/include/rosidl_runtime_cpp/message_type_support_decl.hpp @@ -27,6 +27,7 @@ namespace rosidl_runtime_cpp * \return Function handler for the message's typesupport. */ template +[[nodiscard]] const rosidl_message_type_support_t * get_message_type_support_handle(); } // namespace rosidl_runtime_cpp diff --git a/rosidl_runtime_cpp/include/rosidl_runtime_cpp/service_type_support_decl.hpp b/rosidl_runtime_cpp/include/rosidl_runtime_cpp/service_type_support_decl.hpp index 80eeb79fd..0f024bb6c 100644 --- a/rosidl_runtime_cpp/include/rosidl_runtime_cpp/service_type_support_decl.hpp +++ b/rosidl_runtime_cpp/include/rosidl_runtime_cpp/service_type_support_decl.hpp @@ -27,6 +27,7 @@ namespace rosidl_runtime_cpp * \return Function handler for the service's typesupport. */ template +[[nodiscard]] const rosidl_service_type_support_t * get_service_type_support_handle(); } // namespace rosidl_runtime_cpp diff --git a/rosidl_runtime_cpp/include/rosidl_typesupport_cpp/action_type_support.hpp b/rosidl_runtime_cpp/include/rosidl_typesupport_cpp/action_type_support.hpp index e0befe2bc..2d0171a73 100644 --- a/rosidl_runtime_cpp/include/rosidl_typesupport_cpp/action_type_support.hpp +++ b/rosidl_runtime_cpp/include/rosidl_typesupport_cpp/action_type_support.hpp @@ -22,6 +22,7 @@ namespace rosidl_typesupport_cpp { template +[[nodiscard]] const rosidl_action_type_support_t * get_action_type_support_handle(); } // namespace rosidl_typesupport_cpp diff --git a/rosidl_runtime_cpp/include/rosidl_typesupport_cpp/message_type_support.hpp b/rosidl_runtime_cpp/include/rosidl_typesupport_cpp/message_type_support.hpp index 6fad1d7d5..af0064efd 100644 --- a/rosidl_runtime_cpp/include/rosidl_typesupport_cpp/message_type_support.hpp +++ b/rosidl_runtime_cpp/include/rosidl_typesupport_cpp/message_type_support.hpp @@ -22,6 +22,7 @@ namespace rosidl_typesupport_cpp { template +[[nodiscard]] const rosidl_message_type_support_t * get_message_type_support_handle(); } // namespace rosidl_typesupport_cpp diff --git a/rosidl_runtime_cpp/include/rosidl_typesupport_cpp/service_type_support.hpp b/rosidl_runtime_cpp/include/rosidl_typesupport_cpp/service_type_support.hpp index 2931b8736..23b3e8a45 100644 --- a/rosidl_runtime_cpp/include/rosidl_typesupport_cpp/service_type_support.hpp +++ b/rosidl_runtime_cpp/include/rosidl_typesupport_cpp/service_type_support.hpp @@ -25,6 +25,7 @@ namespace rosidl_typesupport_cpp { template +[[nodiscard]] const rosidl_service_type_support_t * get_service_type_support_handle(); template diff --git a/rosidl_typesupport_introspection_cpp/include/rosidl_typesupport_introspection_cpp/message_type_support_decl.hpp b/rosidl_typesupport_introspection_cpp/include/rosidl_typesupport_introspection_cpp/message_type_support_decl.hpp index 97eece341..3666c49dd 100644 --- a/rosidl_typesupport_introspection_cpp/include/rosidl_typesupport_introspection_cpp/message_type_support_decl.hpp +++ b/rosidl_typesupport_introspection_cpp/include/rosidl_typesupport_introspection_cpp/message_type_support_decl.hpp @@ -28,6 +28,7 @@ namespace rosidl_typesupport_introspection_cpp /// the rosidl_generate_interfaces() macro. /// This is implemented in the shared library provided by this package. template +[[nodiscard]] ROSIDL_TYPESUPPORT_INTROSPECTION_CPP_PUBLIC const rosidl_message_type_support_t * get_message_type_support_handle(); diff --git a/rosidl_typesupport_introspection_cpp/include/rosidl_typesupport_introspection_cpp/service_type_support_decl.hpp b/rosidl_typesupport_introspection_cpp/include/rosidl_typesupport_introspection_cpp/service_type_support_decl.hpp index eaa3db906..bcc6ac858 100644 --- a/rosidl_typesupport_introspection_cpp/include/rosidl_typesupport_introspection_cpp/service_type_support_decl.hpp +++ b/rosidl_typesupport_introspection_cpp/include/rosidl_typesupport_introspection_cpp/service_type_support_decl.hpp @@ -27,6 +27,7 @@ namespace rosidl_typesupport_introspection_cpp /// services. /// This is implemented in the shared library provided by this package. template +[[nodiscard]] ROSIDL_TYPESUPPORT_INTROSPECTION_CPP_PUBLIC const rosidl_service_type_support_t * get_service_type_support_handle();