We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
foo_priv.h:
foo_priv.h
// IWYU pragma: private, include "foo.h" class Bar; class Foo {};
foo.h:
foo.h
#include "foo_priv.h"
bar_header.h:
bar_header.h
class Bar {};
Despite of foo.h not owning Bar, we'll infer it as canonical header for Bar, because of the IWYU private pragma.
Bar
I guess we can adjust private pragma to only affect declarations with a definition.
The other alternative is changing the strength for canonical signal, but it might regress other cases.
The text was updated successfully, but these errors were encountered:
@llvm/issue-subscribers-clang-include-cleaner
Sorry, something went wrong.
https://reviews.llvm.org/D159441
No branches or pull requests
foo_priv.h
:foo.h
:bar_header.h
:Despite of
foo.h
not owningBar
, we'll infer it as canonical header forBar
, because of the IWYU private pragma.I guess we can adjust private pragma to only affect declarations with a definition.
The other alternative is changing the strength for canonical signal, but it might regress other cases.
The text was updated successfully, but these errors were encountered: