From f52c0792c8992bb03077b7ece8c79d352ace6c41 Mon Sep 17 00:00:00 2001 From: Adam Leeper <78814242+adam-leeper-ai@users.noreply.github.com> Date: Fri, 19 Sep 2025 10:13:46 -0700 Subject: [PATCH] Update point_cloud2_iterator.hpp This adds `// IWYU pragma: private, include "sensor_msgs/point_cloud2_iterator.hpp" to the impl file. This allows the IWYU tool to know that it shouldn't try to pull in the impl file and should instead rely on the public header. See documentation here: https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUPragmas.md#iwyu-pragma-private Signed-off-by: Adam Leeper <78814242+adam-leeper-ai@users.noreply.github.com> --- sensor_msgs/include/sensor_msgs/impl/point_cloud2_iterator.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sensor_msgs/include/sensor_msgs/impl/point_cloud2_iterator.hpp b/sensor_msgs/include/sensor_msgs/impl/point_cloud2_iterator.hpp index f701e7ce..418aa842 100644 --- a/sensor_msgs/include/sensor_msgs/impl/point_cloud2_iterator.hpp +++ b/sensor_msgs/include/sensor_msgs/impl/point_cloud2_iterator.hpp @@ -29,6 +29,8 @@ // This file is originally from: // https://github.com/ros/common_msgs/blob/50ee957/sensor_msgs/include/sensor_msgs/impl/point_cloud2_iterator.h +// IWYU pragma: private, include "sensor_msgs/point_cloud2_iterator.hpp" + #ifndef SENSOR_MSGS__IMPL__POINT_CLOUD2_ITERATOR_HPP_ #define SENSOR_MSGS__IMPL__POINT_CLOUD2_ITERATOR_HPP_