Skip to content

Commit 3fe6e1b

Browse files
Update point_cloud2_iterator.hpp (#298)
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 <[email protected]>
1 parent e8256c0 commit 3fe6e1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sensor_msgs/include/sensor_msgs/impl/point_cloud2_iterator.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
// This file is originally from:
3030
// https://github.com/ros/common_msgs/blob/50ee957/sensor_msgs/include/sensor_msgs/impl/point_cloud2_iterator.h
3131

32+
// IWYU pragma: private, include "sensor_msgs/point_cloud2_iterator.hpp"
33+
3234
#ifndef SENSOR_MSGS__IMPL__POINT_CLOUD2_ITERATOR_HPP_
3335
#define SENSOR_MSGS__IMPL__POINT_CLOUD2_ITERATOR_HPP_
3436

0 commit comments

Comments
 (0)