cpp-common: remove unused include
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 12 Feb 2024 19:29:15 +0000 (14:29 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 19 Feb 2024 18:10:15 +0000 (13:10 -0500)
Remove some unused (according to clangd) includes.  Add one IWYU pragma
to tell it to keep `fmt/format.h`, which is needed to make the
`format_as` function defined in that file work.

Change-Id: I9c4d716975e46bbfad0372aa7ede5f449868848f
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11782
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
src/cpp-common/bt2/clock-class.hpp
src/cpp-common/bt2/component-port.hpp
src/cpp-common/bt2/raw-value-proxy.hpp
src/cpp-common/bt2/self-component-port.hpp
src/cpp-common/bt2c/c-string-view.hpp

index 9e66cbf4290720b561fd2507183fd0aac173a88d..f8fc17e04cc727ef4848445738574819aa8061fa 100644 (file)
@@ -8,7 +8,6 @@
 #define BABELTRACE_CPP_COMMON_BT2_CLOCK_CLASS_HPP
 
 #include <cstdint>
-#include <string>
 #include <type_traits>
 
 #include <babeltrace2/babeltrace.h>
index 110c9b62a3787be4a83cbf084024278f19c344c1..c533da0efed855a5a1d8eeb1e786c9012baf9275 100644 (file)
@@ -8,7 +8,6 @@
 #define BABELTRACE_CPP_COMMON_BT2_COMPONENT_PORT_HPP
 
 #include <cstdint>
-#include <string>
 
 #include <babeltrace2/babeltrace.h>
 
index 0c2543bdf9ed423c5d5c316c3b39d5a97eca8c71..89f1a6a7da5a282b3ee62e439c402f895f1172a6 100644 (file)
@@ -7,10 +7,6 @@
 #ifndef BABELTRACE_CPP_COMMON_BT2_RAW_VALUE_PROXY_HPP
 #define BABELTRACE_CPP_COMMON_BT2_RAW_VALUE_PROXY_HPP
 
-#include <string>
-
-#include "cpp-common/bt2c/c-string-view.hpp"
-
 namespace bt2 {
 
 template <typename ObjT>
index 0f5a2ec8913f5298a8688e709ea1f24be3d2bf64..e41dd09c8cde3d3259236861244c9f627f99f3c3 100644 (file)
@@ -8,7 +8,6 @@
 #define BABELTRACE_CPP_COMMON_BT2_SELF_COMPONENT_PORT_HPP
 
 #include <cstdint>
-#include <string>
 
 #include <babeltrace2/babeltrace.h>
 
index 54c87de9f1df581541e6eec5b9af40e3155bcd1a..939c8a16455b014d1b5cca10168c75f99af2d7b8 100644 (file)
@@ -13,7 +13,7 @@
 
 #include "common/assert.h"
 #include "cpp-common/bt2s/string-view.hpp"
-#include "cpp-common/vendor/fmt/format.h"
+#include "cpp-common/vendor/fmt/format.h" /* IWYU pragma: keep */
 
 #include "type-traits.hpp"
 
This page took 0.028282 seconds and 4 git commands to generate.