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

Are we able to temporarily disable no_fwd_decls in a specific file ? #1640

Open
st0rm23 opened this issue Oct 12, 2024 · 1 comment
Open

Comments

@st0rm23
Copy link

st0rm23 commented Oct 12, 2024

In my project, we globally enable the --no_fwd_decls for iwyu.
But for some hub headers, we hope to skip no_fwd_decls features to reduce downstream header includes.

Are there any iwyu features can temporarily disable the no_fwd_decls in a specific file? Hope we have a pragma like // IWYU pragma: no_fwd_decls disable

@st0rm23 st0rm23 changed the title Are we able to temporarily disable no_fwd_decls in a specific files ? Are we able to temporarily disable no_fwd_decls in a specific file ? Oct 12, 2024
@kimgr
Copy link
Contributor

kimgr commented Oct 12, 2024

Not immediately, but you can tweak your build system to remove the switch for individual files.

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

No branches or pull requests

2 participants