[client] Add include-what-you-use pragmas to simulate_crash facade
client/simulate_crash.h is a facade header which shells out to
the appropriate platform's header to simulate a crash.
Tools like include-what-you-use (IWYU) need a little help understanding
this pattern, so they recommend the facade instead of the individual
platform headers.
This change adds IWYU pragma comments to the headers so the facade
header is recommended over an individual platform's header:
https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUPragmas.md
Bug: http://b/403338487
Change-Id: I29c82f4e21dc33e959d7cd0dc4dc91209fe7d65e
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/6434621
Commit-Queue: Ben Hamilton <benhamilton@google.com>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Reviewed-by: Justin Cohen <justincohen@chromium.org>
diff --git a/client/simulate_crash.h b/client/simulate_crash.h
index 036e24f..3647791 100644
--- a/client/simulate_crash.h
+++ b/client/simulate_crash.h
@@ -17,6 +17,7 @@
#include "build/build_config.h"
+// IWYU pragma: begin_exports
#if BUILDFLAG(IS_MAC)
#include "client/simulate_crash_mac.h"
#elif BUILDFLAG(IS_IOS)
@@ -26,5 +27,6 @@
#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)
#include "client/simulate_crash_linux.h"
#endif
+// IWYU pragma: end_exports
#endif // CRASHPAD_CLIENT_SIMULATE_CRASH_H_