From 17604c3417a88a8d65b1bb68c3bc674c41a26e9e Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Sat, 30 Aug 2025 17:20:59 +0200 Subject: [PATCH] Annotate facade header with IWYU export annotation Without that annotation, tools such as `clang-tidy` or the `clangd` language server (as well as many other tools) will complain about headers not directly providing a symbol if users include `beast.hpp`; With this annotation, they know. Documentation IWYU https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUPragmas.md#iwyu-pragma-begin_exportsend_exports Documentation llvm include cleaner/clang-tidy/clangd https://clangd.llvm.org/design/include-cleaner#iwyu-pragmas Signed-off-by: Henner Zeller --- include/boost/beast.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/beast.hpp b/include/boost/beast.hpp index 458f20a713..9ef98b0175 100644 --- a/include/boost/beast.hpp +++ b/include/boost/beast.hpp @@ -10,6 +10,8 @@ #ifndef BOOST_BEAST_HPP #define BOOST_BEAST_HPP +// IWYU pragma: begin_exports + #include // must come first #include @@ -18,4 +20,6 @@ #include #include +// IWYU pragma: end_exports + #endif