commit | d5c80ad9c07b94465d8ea62d2b6f87c30cac765e | [log] [tgz] |
---|---|---|
author | Nan Zhou <nanzhoumails@gmail.com> | Mon Jul 11 01:16:31 2022 +0000 |
committer | Ed Tanous <ed@tanous.net> | Sat Jul 23 15:17:11 2022 +0000 |
tree | 7400b044cbca9299807facb5ab61b333a585d1b7 | |
parent | 0d7702c0246c5948caf12a3e441f74952c7d0ccf [diff] [blame] |
test treewide: iwyu These changes are done by running iwyu manually under clang14. Suppressed some obvious impl or details headers. Kept the recommended public headers. IWYU can increase readability, make maintenance easier, and avoid errors in some cases. See details in https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/WhyIWYU.md. This commit also uses its best effort to correct obvious errors through iwyu pragma. See reference here: https://github.com/include-what-you-use/include-what-you-use#how-to-correct-iwyu-mistakes Tested: unit test passed. Signed-off-by: Nan Zhou <nanzhoumails@gmail.com> Change-Id: I983b6f75601707cbb0f2f04546c3362ff4ba7fee
diff --git a/redfish-core/include/registries.hpp b/redfish-core/include/registries.hpp index 26e1941..a995d76 100644 --- a/redfish-core/include/registries.hpp +++ b/redfish-core/include/registries.hpp
@@ -15,9 +15,14 @@ */ #pragma once +#include <array> +#include <cstddef> #include <span> #include <string> #include <string_view> +#include <utility> + +// IWYU pragma: no_include <stddef.h> namespace redfish::registries {