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>
#define BABELTRACE_CPP_COMMON_BT2_CLOCK_CLASS_HPP
#include <cstdint>
-#include <string>
#include <type_traits>
#include <babeltrace2/babeltrace.h>
#define BABELTRACE_CPP_COMMON_BT2_COMPONENT_PORT_HPP
#include <cstdint>
-#include <string>
#include <babeltrace2/babeltrace.h>
#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>
#define BABELTRACE_CPP_COMMON_BT2_SELF_COMPONENT_PORT_HPP
#include <cstdint>
-#include <string>
#include <babeltrace2/babeltrace.h>
#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"