Ignore header failures on registries
The generated registries have an imperfect handling of #include
dependencies. Update the script to ignore the misc-include-cleaner
recommendations for now. Future fixes could be done to make these
generated headers actually correctly include their dependencies, but
that is non trivial to do, and the build is broken.
Change-Id: I32c70e9f865ca7ef693c736a45b3ea59513a751d
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/redfish-core/include/error_messages.hpp b/redfish-core/include/error_messages.hpp
index 82ae598..4307fe6 100644
--- a/redfish-core/include/error_messages.hpp
+++ b/redfish-core/include/error_messages.hpp
@@ -9,7 +9,9 @@
* should be first pushed to the relevant registry in the DMTF
* github organization.
***************************************************************/
-
+// These generated headers are a superset of what is needed.
+// clang sees them as an error, so ignore
+// NOLINTBEGIN(misc-include-cleaner)
#include "http_response.hpp"
#include <boost/url/url_view_base.hpp>
@@ -18,8 +20,7 @@
#include <cstdint>
#include <source_location>
#include <string_view>
-
-// IWYU pragma: no_forward_declare crow::Response
+// NOLINTEND(misc-include-cleaner)
namespace redfish
{
diff --git a/redfish-core/include/heartbeat_messages.hpp b/redfish-core/include/heartbeat_messages.hpp
index b40d8ea..61aadf0 100644
--- a/redfish-core/include/heartbeat_messages.hpp
+++ b/redfish-core/include/heartbeat_messages.hpp
@@ -9,10 +9,18 @@
* should be first pushed to the relevant registry in the DMTF
* github organization.
***************************************************************/
+// These generated headers are a superset of what is needed.
+// clang sees them as an error, so ignore
+// NOLINTBEGIN(misc-include-cleaner)
+#include "http_response.hpp"
+#include <boost/url/url_view_base.hpp>
#include <nlohmann/json.hpp>
-// IWYU pragma: no_forward_declare crow::Response
+#include <cstdint>
+#include <source_location>
+#include <string_view>
+// NOLINTEND(misc-include-cleaner)
namespace redfish
{
diff --git a/redfish-core/include/resource_messages.hpp b/redfish-core/include/resource_messages.hpp
index b8ef3cc..1665810 100644
--- a/redfish-core/include/resource_messages.hpp
+++ b/redfish-core/include/resource_messages.hpp
@@ -9,12 +9,18 @@
* should be first pushed to the relevant registry in the DMTF
* github organization.
***************************************************************/
+// These generated headers are a superset of what is needed.
+// clang sees them as an error, so ignore
+// NOLINTBEGIN(misc-include-cleaner)
+#include "http_response.hpp"
+#include <boost/url/url_view_base.hpp>
#include <nlohmann/json.hpp>
+#include <cstdint>
+#include <source_location>
#include <string_view>
-
-// IWYU pragma: no_forward_declare crow::Response
+// NOLINTEND(misc-include-cleaner)
namespace redfish
{
diff --git a/redfish-core/include/task_messages.hpp b/redfish-core/include/task_messages.hpp
index 5c57a85..48bbc68 100644
--- a/redfish-core/include/task_messages.hpp
+++ b/redfish-core/include/task_messages.hpp
@@ -9,13 +9,18 @@
* should be first pushed to the relevant registry in the DMTF
* github organization.
***************************************************************/
+// These generated headers are a superset of what is needed.
+// clang sees them as an error, so ignore
+// NOLINTBEGIN(misc-include-cleaner)
+#include "http_response.hpp"
+#include <boost/url/url_view_base.hpp>
#include <nlohmann/json.hpp>
#include <cstdint>
+#include <source_location>
#include <string_view>
-
-// IWYU pragma: no_forward_declare crow::Response
+// NOLINTEND(misc-include-cleaner)
namespace redfish
{
diff --git a/scripts/parse_registries.py b/scripts/parse_registries.py
index 0e566aa..9080a3e 100755
--- a/scripts/parse_registries.py
+++ b/scripts/parse_registries.py
@@ -416,16 +416,18 @@
out.write(WARNING)
out.write(
"""
-
+// These generated headers are a superset of what is needed.
+// clang sees them as an error, so ignore
+// NOLINTBEGIN(misc-include-cleaner)
#include "http_response.hpp"
#include <boost/url/url_view_base.hpp>
#include <nlohmann/json.hpp>
+#include <cstdint>
#include <source_location>
#include <string_view>
-
-// IWYU pragma: no_forward_declare crow::Response
+// NOLINTEND(misc-include-cleaner)
namespace redfish
{