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 in header meant to export other headers. #1093

Merged

Conversation

hzeller
Copy link
Collaborator

@hzeller hzeller commented Nov 13, 2024

clang-tidy usually would complain if not a direct header for a particular symbol is included.

The uhdm.h header is meant as a 'catchall' header that provides all the symbols in all the headers is includes. So mark them as such so that toolings understand that this is the intention.

A common way is to use the IWYU pragmas for that:
https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUPragmas.md#iwyu-pragma-begin_exportsend_exports

clang-tidy usually would complain if not a direct header for a particular
symbol is included.

The uhdm.h header is meant as a 'catchall' header that provides all
the symbols in all the headers is includes. So mark them as such so that
toolings understand that this is the intention.

A common way is to use the IWYU pragmas for that:
https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUPragmas.md#iwyu-pragma-begin_exportsend_exports
@hzeller hzeller merged commit 7d90dd0 into chipsalliance:master Nov 13, 2024
6 checks passed
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