Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IWYU pragmas to indicate that the headers export symbols. #4785

Merged
merged 1 commit into from
Mar 7, 2025

Conversation

hzeller
Copy link
Contributor

@hzeller hzeller commented Mar 6, 2025

Described here https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUPragmas.md#iwyu-pragma-begin_exportsend_exports

These pragmas are not only understood by the IWYU tools, but as well clang-tidy ( https://clangd.llvm.org/design/include-cleaner#iwyu-pragmas ), so that projects using clang-tidy will not get false-positives about missing includes.

Described here https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUPragmas.md#iwyu-pragma-begin_exportsend_exports

These pragmas are not only understood by the IWYU tools, but
as well clang-tidy ( https://clangd.llvm.org/design/include-cleaner#iwyu-pragmas ),
so that projects using clang-tidy will not get false-positives
about missing includes.

Signed-off-by: Henner Zeller <h.zeller@acm.org>
@parrt parrt merged commit e9501a0 into antlr:dev Mar 7, 2025
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants