From e208837c244e4a5958cd66cddf95da0ca826324e Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Sat, 30 Aug 2025 16:45:11 +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 `polygon.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 --- include/boost/polygon/polygon.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/polygon/polygon.hpp b/include/boost/polygon/polygon.hpp index 90a7c1f8..db7dd8a7 100644 --- a/include/boost/polygon/polygon.hpp +++ b/include/boost/polygon/polygon.hpp @@ -9,6 +9,8 @@ #define BOOST_POLYGON_POLYGON_HPP #define BOOST_POLYGON_VERSION 014401 +// IWYU pragma: begin_exports + #include "isotropy.hpp" //point @@ -89,4 +91,6 @@ #include "segment_utils.hpp" +// IWYU pragma: end_exports + #endif