[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().

Bug: 1192087
Change-Id: Ic44d9f2a678463dec4644097a4097faff724c8ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2831587
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#873284}
GitOrigin-RevId: 9452aee249d7ee66d4b39c995b29bb1b4858103b
1 file changed