[Include analysis] Tweak regex and path normalization
This tweaks the regex which recognizes compiler invocation to also
work in LLVM builds, where the "-c foo.cpp" part comes last.
The path normalization change is to handle symlinks better, where
foo/symlink/../bar will not necessarily work with just normpath().
Reviewed-by: Nico Weber <email@example.com>
Commit-Queue: Hans Wennborg <firstname.lastname@example.org>
1 file changed