summaryrefslogtreecommitdiff
path: root/redfish-core/src/utils
diff options
context:
space:
mode:
authorEd Tanous <ed@tanous.net>2024-03-20 23:38:04 +0300
committerEd Tanous <ed@tanous.net>2024-03-28 06:35:52 +0300
commitf0b59af46a6aa84890d2181b08d4e1af5ce5002f (patch)
tree446e1ed998ede11cbad0faa93a65c727eb6bb3df /redfish-core/src/utils
parent5a8b641229ad1b1c14ae10b7772e5361503675c7 (diff)
downloadbmcweb-f0b59af46a6aa84890d2181b08d4e1af5ce5002f.tar.xz
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>
Diffstat (limited to 'redfish-core/src/utils')
-rw-r--r--redfish-core/src/utils/json_utils.cpp3
-rw-r--r--redfish-core/src/utils/time_utils.cpp1
2 files changed, 3 insertions, 1 deletions
diff --git a/redfish-core/src/utils/json_utils.cpp b/redfish-core/src/utils/json_utils.cpp
index 5e44199d44..8d12bad7df 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 3aa3e79b54..fa49657324 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
{