commit | ba33d438d903f77a0b70b4f97d9c05320eecd530 | [log] [tgz] |
---|---|---|
author | Anqi Dong <anqid@google.com> | Thu Sep 29 01:12:01 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Sep 29 01:12:01 2022 +0000 |
tree | fdbed361edf5a4920134d861a69b92a9bad13555 | |
parent | 13a5f2a375c7d57a5a3bfb3520a55ee831944936 [diff] |
pw_span: Add IWYU pragma More context behind what these are: https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUPragmas.md Some projects (including some internal Google infrastructure) use these pragmas to help surface unused includes. Without this pragma, certain tooling would believe that all includes to pw_span/span.h were unnecessary, and/or that pw_span/internal/span_impl.h should instead be used. It's likely that other files would also benefit from these pragmas, but this particular one is currently causing trouble for me. Change-Id: Ia2de79e6ec8ed356289c809286d73e953fda4506 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/112511 Commit-Queue: Anqi Dong <anqid@google.com> Reviewed-by: Keir Mierle <keir@google.com> Pigweed-Auto-Submit: Anqi Dong <anqid@google.com>
diff --git a/pw_span/public/pw_span/span.h b/pw_span/public/pw_span/span.h index af0c63b..69c5521 100644 --- a/pw_span/public/pw_span/span.h +++ b/pw_span/public/pw_span/span.h
@@ -42,6 +42,6 @@ #else // If std::span is not available, use Pigweed's span implementation. -#include "pw_span/internal/span_impl.h" +#include "pw_span/internal/span_impl.h" // IWYU pragma: export #endif // defined(__cpp_lib_span) && __cpp_lib_span >= 202002L