diff options
author | Ed Tanous <ed@tanous.net> | 2024-03-20 23:38:04 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-03-28 06:35:52 +0300 |
commit | f0b59af46a6aa84890d2181b08d4e1af5ce5002f (patch) | |
tree | 446e1ed998ede11cbad0faa93a65c727eb6bb3df /src | |
parent | 5a8b641229ad1b1c14ae10b7772e5361503675c7 (diff) | |
download | bmcweb-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 'src')
-rw-r--r-- | src/dbus_singleton.cpp | 2 | ||||
-rw-r--r-- | src/json_html_serializer.cpp | 11 | ||||
-rw-r--r-- | src/ossl_random.cpp | 4 | ||||
-rw-r--r-- | src/webserver_main.cpp | 1 |
4 files changed, 15 insertions, 3 deletions
diff --git a/src/dbus_singleton.cpp b/src/dbus_singleton.cpp index b3b808bfe1..0c937d149a 100644 --- a/src/dbus_singleton.cpp +++ b/src/dbus_singleton.cpp @@ -1,5 +1,7 @@ #include "dbus_singleton.hpp" +#include <sdbusplus/asio/connection.hpp> + namespace crow { namespace connections diff --git a/src/json_html_serializer.cpp b/src/json_html_serializer.cpp index 8322f1dd8a..5473b1d094 100644 --- a/src/json_html_serializer.cpp +++ b/src/json_html_serializer.cpp @@ -2,11 +2,18 @@ #include "http_response.hpp" +#include <boost/beast/http/field.hpp> #include <nlohmann/json.hpp> -#include <algorithm> #include <array> -#include <limits> +#include <cmath> +#include <cstddef> +#include <cstdint> +#include <cstdio> +#include <iterator> +#include <string> +#include <type_traits> +#include <utility> namespace json_html_util { diff --git a/src/ossl_random.cpp b/src/ossl_random.cpp index f196a8b5a3..126197792b 100644 --- a/src/ossl_random.cpp +++ b/src/ossl_random.cpp @@ -1,8 +1,10 @@ #include "ossl_random.hpp" -#include <boost/uuid/uuid_generators.hpp> +#include <boost/uuid/random_generator.hpp> #include <boost/uuid/uuid_io.hpp> +#include <string> + std::string bmcweb::getRandomUUID() { using bmcweb::OpenSSLGenerator; diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp index 67e2aaef04..cc8e1bcfcf 100644 --- a/src/webserver_main.cpp +++ b/src/webserver_main.cpp @@ -4,6 +4,7 @@ #include "cors_preflight.hpp" #include "dbus_monitor.hpp" #include "dbus_singleton.hpp" +#include "event_service_manager.hpp" #include "google/google_service_root.hpp" #include "hostname_monitor.hpp" #include "ibm/management_console_rest.hpp" |