summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-01-05 01:18:22 +0300
committerEd Tanous <ed@tanous.net>2022-01-19 22:56:08 +0300
commit9ea15c35e10f4d9d3f61538b444e75efa15e426a (patch)
tree31952847a5ec96aca6a07f3704e02ac492f77a15
parent5df6eda23a0407ad2047fdb1b6ef2770155ff7f9 (diff)
downloadbmcweb-9ea15c35e10f4d9d3f61538b444e75efa15e426a.tar.xz
Include what you use
Do a partial update from the include what you use tool. While ideally we'd be able to do this as part of CI, there's still quite a bit of noise in the output that requires manual intervention. Tested: Code compiles Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Iaaeb7a9199f64b5d6913c3abab4779b252768ed8
-rw-r--r--http/utility.hpp9
-rw-r--r--include/human_sort.hpp2
-rw-r--r--redfish-core/include/error_messages.hpp2
-rw-r--r--redfish-core/include/utils/hex_utils.hpp1
-rw-r--r--redfish-core/include/utils/stl_utils.hpp2
-rw-r--r--redfish-core/include/utils/time_utils.hpp5
-rw-r--r--redfish-core/src/error_messages.cpp4
7 files changed, 19 insertions, 6 deletions
diff --git a/http/utility.hpp b/http/utility.hpp
index 74a35daed3..41182e4eb4 100644
--- a/http/utility.hpp
+++ b/http/utility.hpp
@@ -1,18 +1,21 @@
#pragma once
-#include "nlohmann/json.hpp"
#include <openssl/crypto.h>
#include <boost/date_time/posix_time/posix_time.hpp>
+#include <array>
#include <chrono>
#include <cstdint>
-#include <cstring>
+#include <ctime>
#include <functional>
-#include <regex>
+#include <limits>
#include <stdexcept>
#include <string>
+#include <string_view>
#include <tuple>
+#include <type_traits>
+#include <utility>
namespace crow
{
diff --git a/include/human_sort.hpp b/include/human_sort.hpp
index 5676994fbe..0d6e35d8a5 100644
--- a/include/human_sort.hpp
+++ b/include/human_sort.hpp
@@ -1,7 +1,5 @@
#pragma once
-#include <functional>
-#include <sstream>
#include <string_view>
namespace details
diff --git a/redfish-core/include/error_messages.hpp b/redfish-core/include/error_messages.hpp
index 5bee7b086c..7eeeaea448 100644
--- a/redfish-core/include/error_messages.hpp
+++ b/redfish-core/include/error_messages.hpp
@@ -19,6 +19,8 @@
#include <nlohmann/json.hpp>
#include <source_location.hpp>
+#include <string>
+
namespace redfish
{
diff --git a/redfish-core/include/utils/hex_utils.hpp b/redfish-core/include/utils/hex_utils.hpp
index c9fe7ef052..8ca3a81b16 100644
--- a/redfish-core/include/utils/hex_utils.hpp
+++ b/redfish-core/include/utils/hex_utils.hpp
@@ -1,6 +1,7 @@
#pragma once
#include <array>
+#include <cstddef>
#include <string>
template <typename IntegerType>
diff --git a/redfish-core/include/utils/stl_utils.hpp b/redfish-core/include/utils/stl_utils.hpp
index 04d02cbada..f582b862f6 100644
--- a/redfish-core/include/utils/stl_utils.hpp
+++ b/redfish-core/include/utils/stl_utils.hpp
@@ -1,7 +1,7 @@
#pragma once
#include <algorithm>
-#include <string>
+#include <vector>
namespace redfish
{
diff --git a/redfish-core/include/utils/time_utils.hpp b/redfish-core/include/utils/time_utils.hpp
index cef8aa5976..b4bc778c60 100644
--- a/redfish-core/include/utils/time_utils.hpp
+++ b/redfish-core/include/utils/time_utils.hpp
@@ -2,11 +2,16 @@
#include "logging.hpp"
+#include <algorithm>
#include <charconv>
#include <chrono>
#include <cmath>
+#include <compare>
+#include <cstddef>
#include <optional>
+#include <ratio>
#include <string>
+#include <string_view>
#include <system_error>
namespace redfish
diff --git a/redfish-core/src/error_messages.cpp b/redfish-core/src/error_messages.cpp
index 3fd48a2c04..83ebbfedec 100644
--- a/redfish-core/src/error_messages.cpp
+++ b/redfish-core/src/error_messages.cpp
@@ -13,8 +13,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
*/
+#include "http_response.hpp"
+
+#include <boost/beast/http/status.hpp>
#include <error_messages.hpp>
#include <logging.hpp>
+#include <nlohmann/json.hpp>
namespace redfish
{