[Vim/YCM] Calculate system library paths based on Clang++ binary path.

The YouCompleteMe configuration still needs to determine the list of
system include paths. The current chromium.ycm_extra_conf.py logic
requires that the host machine has a 'clang' binary in its PATH that can
yield this information.

This change calculates the system include paths based on the clang++
binary used to compile the target file. It allows the use of wrappers
(E.g. goma), by looking for a clang++ command in the first and second
tokens in the compile command. It's still not perfect since the Clang
library used by ycmd might be different, but it should work better than
the current logic.

BUG=none
NOTRY=true

Review URL: https://codereview.chromium.org/1137303005

Cr-Original-Commit-Position: refs/heads/master@{#330409}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 01c39d08735ba762e1788d3ce4922d46f25c4028
1 file changed