diff options
author | Nan Zhou <nanzhoumails@gmail.com> | 2022-08-18 22:49:00 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-08-24 10:22:51 +0300 |
commit | 0442ef92689d7719c89474a4fc81fbdaca7a4a96 (patch) | |
tree | f927c93e83b7fcde5d590b1cc43923ce569cd4fd | |
parent | 0d5f5cf4ff93e89e94a5291f856f3e6976ed2284 (diff) | |
download | bmcweb-0442ef92689d7719c89474a4fc81fbdaca7a4a96.tar.xz |
error_message: iwyu
I found that error_messages.cpp missed headers when adding
insufficientResource errors. This commit is like the other incremental
iwyu effort. Now error message library is fixed.
Tetsted: compiles.
Signed-off-by: Nan Zhou <nanzhoumails@gmail.com>
Change-Id: Ia5f4716d21a98cad56ec2ae0b842a40ed825cb17
-rw-r--r-- | redfish-core/include/error_messages.hpp | 8 | ||||
-rw-r--r-- | redfish-core/src/error_messages.cpp | 17 |
2 files changed, 20 insertions, 5 deletions
diff --git a/redfish-core/include/error_messages.hpp b/redfish-core/include/error_messages.hpp index 1a5b94132d..76052fcf15 100644 --- a/redfish-core/include/error_messages.hpp +++ b/redfish-core/include/error_messages.hpp @@ -14,13 +14,19 @@ // limitations under the License. */ #pragma once + #include "http_response.hpp" +#include "source_location.hpp" #include <boost/url/url_view.hpp> #include <nlohmann/json.hpp> -#include <source_location.hpp> +#include <cstdint> #include <string> +#include <string_view> + +// IWYU pragma: no_include <cstdint.h> +// IWYU pragma: no_forward_declare crow::Response namespace redfish { diff --git a/redfish-core/src/error_messages.cpp b/redfish-core/src/error_messages.cpp index 654353d783..c6d27a9788 100644 --- a/redfish-core/src/error_messages.cpp +++ b/redfish-core/src/error_messages.cpp @@ -13,16 +13,25 @@ // See the License for the specific language governing permissions and // limitations under the License. */ +#include "error_messages.hpp" + #include "http_response.hpp" +#include "logging.hpp" +#include "nlohmann/json.hpp" +#include "registries.hpp" #include "registries/base_message_registry.hpp" +#include "source_location.hpp" +#include <boost/beast/http/field.hpp> #include <boost/beast/http/status.hpp> -#include <boost/url/url.hpp> -#include <error_messages.hpp> -#include <logging.hpp> -#include <nlohmann/json.hpp> #include <array> +#include <cstddef> +#include <span> +#include <string> +#include <utility> + +// IWYU pragma: no_include <stddef.h> namespace redfish { |