New issue 1144 by honkstar1: More ".." in include path than folders in additional include dir (which is not absolute)
https://github.com/include-what-you-use/include-what-you-use/issues/1144
I've run into a problem where our response file contains relative paths and an include is looking like this "../../Foo.h"
When LLVM returns the string from clang::FileEntry::getName() it returns a combined relative include dir and include.
So in my case I have a relative include path "MyFolder"
The returned path from LLVM is "MyFolder/../../Foo.h"
This is then sent in to NormalizeFilePath (inside iwyu_path_util.cc) which tries to normalize this using llvm::sys::path::remove_dots.
The result ends up being wrong since there are more ".." than there are folders to remove.
I now bit the bullet and updated all the 34000 response files in our solution to all have absolute paths which solved my situation (they are generated so I didn't manually go through those files :-)). I wanted to report this since it was not obvious what went wrong (it silently failed and output got wrong)..
Thanks,
Henrik