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
iwyu removes some headers incorrectly #1249
Comments
On the master branch, the above works for me (MacOS)
clang-16 branch doesn't have the libc++ support, so the missing |
I think I'm using the latest version (Ubuntu 22.04.1, clang installed from $ include-what-you-use --version
include-what-you-use 0.21 (git:14e9b20) based on Ubuntu clang version 16.0.2 (++20230414073413+b5aa566a7e53-1~exp1~20230414073428.73) Iwyu source code not modified, built with:
Also the '__memory' mapping does not seem to work here, iwyu suggests to add |
I increased log verbose and got:
|
After I removed $ include-what-you-use main.cpp
(main.h has correct #includes/fwd-decls)
(main.cpp has correct #includes/fwd-decls) I compared the logs, with
without
When running without Line 1676 in 02b4e50
|
I have these three files:
FontMgr.h:
main.h:
main.cpp:
Running iwyu(main branch & clang_16 branch):
I get:
FontMgr.h
is removed by iwyu, andmain.cpp
cannot be compiled by clang, I get errors like:This happens not only when calling
shared_ptr<IFontMgr>->method()
, but alsooptional<IFontMgr>->method()
.The text was updated successfully, but these errors were encountered: