Open GoogleCodeExporter opened 9 years ago
Try with -isystem$LIBCXX/include and see if it makes any difference. IWYU
chooses quoted includes for -I paths and angled includes for -isystem paths.
I don't see why that should prefer iosfwd over string itself, though, but there
may be something going on.
Original comment by kim.gras...@gmail.com
on 3 Jun 2014 at 8:05
Actually, it is weirder with libc++. For instance, in badinc.cc IWYU
recommends <fstream> for string and in badinc.h - <iosfwd>. Also IWYU
recommends <string> for basic_string. So it's not just a case of quoted and
angled includes.
By the way, majority of problems with libc++ are caused not by missing
mappings, but by inline namespace __1. All STL-specific code expects symbols
like "std::vector", but in libc++ fully qualified name is "std::__1::vector".
See issues #132, #133 as examples of such problems.
Original comment by vsap...@gmail.com
on 3 Jun 2014 at 10:11
Original issue reported on code.google.com by
rol...@rschulz.eu
on 31 May 2014 at 5:36