diff options
author | Ed Tanous <ed@tanous.net> | 2020-10-03 18:06:26 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2020-10-23 18:03:17 +0300 |
commit | 04e438cbad66838724d78ce12f28aff1fb892a63 (patch) | |
tree | 8d8c42a8b3d3e9f8e10c108dd6273e8185d04530 /include | |
parent | dc511aa73001a593a16dbcdaa5d53f320e4c7818 (diff) | |
download | bmcweb-04e438cbad66838724d78ce12f28aff1fb892a63.tar.xz |
fix include names
cppcheck isn't smart enough to recognize these are c++ headers, not c
headers. Considering we're already inconsistent about our naming, it's
easier to just be consistent, and move the last few files to use .hpp
instead of .h.
Tested:
Code builds, no changes.
Signed-off-by: Ed Tanous <ed@tanous.net>
Change-Id: Ic348d695f8527fa4a0ded53f433e1558c319db40
Diffstat (limited to 'include')
-rw-r--r-- | include/authorization.hpp | 9 | ||||
-rw-r--r-- | include/cors_preflight.hpp | 6 | ||||
-rw-r--r-- | include/dbus_monitor.hpp | 5 | ||||
-rw-r--r-- | include/http_utility.hpp | 2 | ||||
-rw-r--r-- | include/ibm/locks.hpp | 3 | ||||
-rw-r--r-- | include/ibm/management_console_rest.hpp | 2 | ||||
-rw-r--r-- | include/image_upload.hpp | 3 | ||||
-rw-r--r-- | include/kvm_websocket.hpp | 4 | ||||
-rw-r--r-- | include/login_routes.hpp | 9 | ||||
-rw-r--r-- | include/nbd_proxy.hpp | 5 | ||||
-rw-r--r-- | include/obmc_console.hpp | 4 | ||||
-rw-r--r-- | include/openbmc_dbus_rest.hpp | 2 | ||||
-rw-r--r-- | include/persistent_data.hpp | 7 | ||||
-rw-r--r-- | include/redfish_v1.hpp | 2 | ||||
-rw-r--r-- | include/security_headers.hpp | 2 | ||||
-rw-r--r-- | include/sessions.hpp | 5 | ||||
-rw-r--r-- | include/vm_websocket.hpp | 5 | ||||
-rw-r--r-- | include/webassets.hpp | 9 |
18 files changed, 37 insertions, 47 deletions
diff --git a/include/authorization.hpp b/include/authorization.hpp index 997e50434f..0ccd1e59ff 100644 --- a/include/authorization.hpp +++ b/include/authorization.hpp @@ -2,13 +2,12 @@ #include "webroutes.hpp" -#include <app.h> -#include <common.h> -#include <http_request.h> -#include <http_response.h> - +#include <app.hpp> #include <boost/algorithm/string/predicate.hpp> #include <boost/container/flat_set.hpp> +#include <common.hpp> +#include <http_request.hpp> +#include <http_response.hpp> #include <http_utility.hpp> #include <pam_authenticate.hpp> diff --git a/include/cors_preflight.hpp b/include/cors_preflight.hpp index 6fa9c0a283..0a5c3cc092 100644 --- a/include/cors_preflight.hpp +++ b/include/cors_preflight.hpp @@ -1,8 +1,8 @@ #pragma once -#include <app.h> -#include <http_request.h> -#include <http_response.h> +#include <app.hpp> +#include <http_request.hpp> +#include <http_response.hpp> namespace cors_preflight { diff --git a/include/dbus_monitor.hpp b/include/dbus_monitor.hpp index 089df76626..aeab1032b7 100644 --- a/include/dbus_monitor.hpp +++ b/include/dbus_monitor.hpp @@ -1,7 +1,5 @@ #pragma once -#include <app.h> -#include <websocket.h> - +#include <app.hpp> #include <async_resp.hpp> #include <boost/container/flat_map.hpp> #include <boost/container/flat_set.hpp> @@ -9,6 +7,7 @@ #include <openbmc_dbus_rest.hpp> #include <sdbusplus/bus/match.hpp> #include <sdbusplus/message/types.hpp> +#include <websocket.hpp> #include <variant> diff --git a/include/http_utility.hpp b/include/http_utility.hpp index d282a28d7c..119a1eefb3 100644 --- a/include/http_utility.hpp +++ b/include/http_utility.hpp @@ -1,5 +1,5 @@ #pragma once -#include "http_request.h" +#include "http_request.hpp" #include <boost/algorithm/string.hpp> diff --git a/include/ibm/locks.hpp b/include/ibm/locks.hpp index 201085f0bf..a8513f6634 100644 --- a/include/ibm/locks.hpp +++ b/include/ibm/locks.hpp @@ -1,10 +1,9 @@ #pragma once -#include <logging.h> - #include <boost/algorithm/string.hpp> #include <boost/container/flat_map.hpp> #include <boost/endian/conversion.hpp> +#include <logging.hpp> #include <nlohmann/json.hpp> #include <filesystem> diff --git a/include/ibm/management_console_rest.hpp b/include/ibm/management_console_rest.hpp index b0e57eddb7..3612b4f7f3 100644 --- a/include/ibm/management_console_rest.hpp +++ b/include/ibm/management_console_rest.hpp @@ -1,7 +1,7 @@ #pragma once -#include <app.h> #include <tinyxml2.h> +#include <app.hpp> #include <async_resp.hpp> #include <boost/algorithm/string.hpp> #include <boost/container/flat_set.hpp> diff --git a/include/image_upload.hpp b/include/image_upload.hpp index 25b4f2a009..df6f56c4a1 100644 --- a/include/image_upload.hpp +++ b/include/image_upload.hpp @@ -1,7 +1,6 @@ #pragma once -#include <app.h> - +#include <app.hpp> #include <boost/uuid/uuid.hpp> #include <boost/uuid/uuid_generators.hpp> #include <boost/uuid/uuid_io.hpp> diff --git a/include/kvm_websocket.hpp b/include/kvm_websocket.hpp index 477582a8d3..8bc955db94 100644 --- a/include/kvm_websocket.hpp +++ b/include/kvm_websocket.hpp @@ -1,10 +1,10 @@ #pragma once -#include <app.h> #include <sys/socket.h> -#include <websocket.h> +#include <app.hpp> #include <async_resp.hpp> #include <boost/container/flat_map.hpp> +#include <websocket.hpp> namespace crow { diff --git a/include/login_routes.hpp b/include/login_routes.hpp index 55a240ea0f..1f7b35a3b4 100644 --- a/include/login_routes.hpp +++ b/include/login_routes.hpp @@ -1,11 +1,10 @@ #pragma once -#include <app.h> -#include <common.h> -#include <http_request.h> -#include <http_response.h> - +#include <app.hpp> #include <boost/container/flat_set.hpp> +#include <common.hpp> +#include <http_request.hpp> +#include <http_response.hpp> #include <pam_authenticate.hpp> #include <webassets.hpp> diff --git a/include/nbd_proxy.hpp b/include/nbd_proxy.hpp index e2ebba1e2a..7ad80a601e 100644 --- a/include/nbd_proxy.hpp +++ b/include/nbd_proxy.hpp @@ -14,9 +14,7 @@ // limitations under the License. */ #pragma once -#include <app.h> -#include <websocket.h> - +#include <app.hpp> #include <boost/asio/buffer.hpp> #include <boost/asio/local/stream_protocol.hpp> #include <boost/asio/write.hpp> @@ -25,6 +23,7 @@ #include <boost/container/flat_map.hpp> #include <dbus_utility.hpp> #include <privileges.hpp> +#include <websocket.hpp> #include <variant> diff --git a/include/obmc_console.hpp b/include/obmc_console.hpp index 020ef912ba..645ea8cdf5 100644 --- a/include/obmc_console.hpp +++ b/include/obmc_console.hpp @@ -1,12 +1,12 @@ #pragma once -#include <app.h> #include <sys/socket.h> -#include <websocket.h> +#include <app.hpp> #include <async_resp.hpp> #include <boost/asio/local/stream_protocol.hpp> #include <boost/container/flat_map.hpp> #include <boost/container/flat_set.hpp> +#include <websocket.hpp> namespace crow { diff --git a/include/openbmc_dbus_rest.hpp b/include/openbmc_dbus_rest.hpp index 01c70e2a86..a369ef2d6c 100644 --- a/include/openbmc_dbus_rest.hpp +++ b/include/openbmc_dbus_rest.hpp @@ -13,9 +13,9 @@ // limitations under the License. #pragma once -#include <app.h> #include <tinyxml2.h> +#include <app.hpp> #include <async_resp.hpp> #include <boost/algorithm/string.hpp> #include <boost/container/flat_set.hpp> diff --git a/include/persistent_data.hpp b/include/persistent_data.hpp index 038fcc612d..19c424a202 100644 --- a/include/persistent_data.hpp +++ b/include/persistent_data.hpp @@ -1,13 +1,12 @@ #pragma once -#include <app.h> -#include <http_request.h> -#include <http_response.h> - +#include <app.hpp> #include <boost/container/flat_map.hpp> #include <boost/uuid/uuid.hpp> #include <boost/uuid/uuid_generators.hpp> #include <boost/uuid/uuid_io.hpp> +#include <http_request.hpp> +#include <http_response.hpp> #include <nlohmann/json.hpp> #include <pam_authenticate.hpp> #include <sessions.hpp> diff --git a/include/redfish_v1.hpp b/include/redfish_v1.hpp index 1e4bd658e6..4230b5f49a 100644 --- a/include/redfish_v1.hpp +++ b/include/redfish_v1.hpp @@ -1,6 +1,6 @@ #pragma once -#include <app.h> +#include <app.hpp> namespace crow { diff --git a/include/security_headers.hpp b/include/security_headers.hpp index cf845c1b5e..13ec893863 100644 --- a/include/security_headers.hpp +++ b/include/security_headers.hpp @@ -1,6 +1,6 @@ #pragma once -#include <http_response.h> +#include <http_response.hpp> inline void addSecurityHeaders(crow::Response& res) { diff --git a/include/sessions.hpp b/include/sessions.hpp index dc6ac1f4fe..7cdb82a17b 100644 --- a/include/sessions.hpp +++ b/include/sessions.hpp @@ -1,9 +1,8 @@ #pragma once -#include "logging.h" -#include "utility.h" - +#include "logging.hpp" #include "random.hpp" +#include "utility.hpp" #include <openssl/rand.h> diff --git a/include/vm_websocket.hpp b/include/vm_websocket.hpp index 3d8abe4e38..a175f0a82f 100644 --- a/include/vm_websocket.hpp +++ b/include/vm_websocket.hpp @@ -1,10 +1,9 @@ #pragma once -#include <app.h> -#include <websocket.h> - +#include <app.hpp> #include <boost/beast/core/flat_static_buffer.hpp> #include <boost/process.hpp> +#include <websocket.hpp> #include <csignal> diff --git a/include/webassets.hpp b/include/webassets.hpp index c2a6851e11..3703c3064a 100644 --- a/include/webassets.hpp +++ b/include/webassets.hpp @@ -2,13 +2,12 @@ #include "webroutes.hpp" -#include <app.h> -#include <http_request.h> -#include <http_response.h> -#include <routing.h> - +#include <app.hpp> #include <boost/algorithm/string/replace.hpp> #include <boost/container/flat_set.hpp> +#include <http_request.hpp> +#include <http_response.hpp> +#include <routing.hpp> #include <filesystem> #include <fstream> |