Skip to content

Conversation

@hzeller
Copy link

@hzeller hzeller commented Aug 30, 2025

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant