From 59fe3ec4484c7b5e4238afe9dd556adc55023af3 Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Sat, 30 Aug 2025 16:53:35 +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 `geometry.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/geometry/geometry.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/geometry/geometry.hpp b/include/boost/geometry/geometry.hpp index d0cf39b7e0..b99a3a7c62 100644 --- a/include/boost/geometry/geometry.hpp +++ b/include/boost/geometry/geometry.hpp @@ -20,6 +20,8 @@ #ifndef BOOST_GEOMETRY_GEOMETRY_HPP #define BOOST_GEOMETRY_GEOMETRY_HPP +// IWYU pragma: begin_exports + #include #if defined(BOOST_NO_CXX14_CONSTEXPR) @@ -134,4 +136,6 @@ #include #include +// IWYU pragma: end_exports + #endif // BOOST_GEOMETRY_GEOMETRY_HPP