diff options
author | Ed Tanous <edtanous@google.com> | 2023-01-14 04:40:03 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2023-01-18 20:06:25 +0300 |
commit | 3ccb3adb9a14783f6bef601506de9f8bcae22d51 (patch) | |
tree | f77a62b7f6e8ba8671c99578335214b6dd8348ac /src | |
parent | 3a4ad5d9dba5ebbb92e8663c3177a326e920cd71 (diff) | |
download | bmcweb-3ccb3adb9a14783f6bef601506de9f8bcae22d51.tar.xz |
Fix a boatload of #includes
Most of these missing includes were found by running clang-tidy on all
files, including headers. The existing scripts just run clang-tidy on
source files, which doesn't catch most of these.
Tested: Code compiles
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Ic741fbb2cc9e5e92955fd5a1b778a482830e80e8
Diffstat (limited to 'src')
-rw-r--r-- | src/security_headers_middleware_test.cpp | 3 | ||||
-rw-r--r-- | src/webserver_main.cpp | 40 |
2 files changed, 23 insertions, 20 deletions
diff --git a/src/security_headers_middleware_test.cpp b/src/security_headers_middleware_test.cpp index 80df725458..99f1f5b370 100644 --- a/src/security_headers_middleware_test.cpp +++ b/src/security_headers_middleware_test.cpp @@ -1,4 +1,5 @@ -#include <app.hpp> +#include "app.hpp" + #include <security_headers_middleware.hpp> #include <gmock/gmock.h> diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp index 05c10cc025..1dbeb061ae 100644 --- a/src/webserver_main.cpp +++ b/src/webserver_main.cpp @@ -1,29 +1,31 @@ -#include <bmcweb_config.h> +#include "bmcweb_config.h" + +#include "app.hpp" +#include "cors_preflight.hpp" +#include "dbus_monitor.hpp" +#include "dbus_singleton.hpp" +#include "hostname_monitor.hpp" +#include "ibm/management_console_rest.hpp" +#include "image_upload.hpp" +#include "kvm_websocket.hpp" +#include "login_routes.hpp" +#include "nbd_proxy.hpp" +#include "obmc_console.hpp" +#include "openbmc_dbus_rest.hpp" +#include "redfish.hpp" +#include "redfish_aggregator.hpp" +#include "security_headers.hpp" +#include "ssl_key_handler.hpp" +#include "vm_websocket.hpp" +#include "webassets.hpp" + #include <systemd/sd-daemon.h> -#include <app.hpp> #include <boost/asio/io_context.hpp> -#include <cors_preflight.hpp> -#include <dbus_monitor.hpp> -#include <dbus_singleton.hpp> #include <google/google_service_root.hpp> -#include <hostname_monitor.hpp> -#include <ibm/management_console_rest.hpp> -#include <image_upload.hpp> -#include <kvm_websocket.hpp> -#include <login_routes.hpp> -#include <nbd_proxy.hpp> -#include <obmc_console.hpp> -#include <openbmc_dbus_rest.hpp> -#include <redfish.hpp> -#include <redfish_aggregator.hpp> #include <sdbusplus/asio/connection.hpp> #include <sdbusplus/bus.hpp> #include <sdbusplus/server.hpp> -#include <security_headers.hpp> -#include <ssl_key_handler.hpp> -#include <vm_websocket.hpp> -#include <webassets.hpp> #include <exception> #include <memory> |