Add misc-include-cleaner
And fix the includes that are wrong.
Note, there is a very large ignore list included in the .clang-tidy
configcfile. These are things that clang-tidy doesn't yet handle
well, like knowing about a details include.
Change-Id: Ie3744f2c8cba68a8700b406449d6c2018a736952
Signed-off-by: Ed Tanous <ed@tanous.net>
diff --git a/redfish-core/src/error_messages.cpp b/redfish-core/src/error_messages.cpp
index 3c628b6..6c4282c 100644
--- a/redfish-core/src/error_messages.cpp
+++ b/redfish-core/src/error_messages.cpp
@@ -22,13 +22,16 @@
#include <boost/beast/http/field.hpp>
#include <boost/beast/http/status.hpp>
+#include <boost/url/url_view.hpp>
#include <nlohmann/json.hpp>
#include <array>
#include <cstddef>
+#include <cstdint>
#include <source_location>
#include <span>
#include <string>
+#include <string_view>
#include <utility>
// IWYU pragma: no_include <stddef.h>
diff --git a/redfish-core/src/registries.cpp b/redfish-core/src/registries.cpp
index c727d1c..8c8b36a 100644
--- a/redfish-core/src/registries.cpp
+++ b/redfish-core/src/registries.cpp
@@ -4,8 +4,12 @@
#include "registries/openbmc_message_registry.hpp"
#include "str_utility.hpp"
+#include <algorithm>
+#include <cstring>
#include <ranges>
+#include <span>
#include <string>
+#include <string_view>
#include <vector>
namespace redfish::registries
diff --git a/redfish-core/src/utils/json_utils.cpp b/redfish-core/src/utils/json_utils.cpp
index 5e44199..8d12bad 100644
--- a/redfish-core/src/utils/json_utils.cpp
+++ b/redfish-core/src/utils/json_utils.cpp
@@ -22,6 +22,9 @@
#include <nlohmann/json.hpp>
+#include <cstdint>
+#include <string>
+
namespace redfish
{
diff --git a/redfish-core/src/utils/time_utils.cpp b/redfish-core/src/utils/time_utils.cpp
index 3aa3e79..fa49657 100644
--- a/redfish-core/src/utils/time_utils.cpp
+++ b/redfish-core/src/utils/time_utils.cpp
@@ -8,7 +8,6 @@
#include <sstream>
#include <string>
#include <string_view>
-#include <version>
namespace redfish::time_utils
{