[clangd] Fixed findDefinitions to always return absolute paths.
authorIlya Biryukov <ibiryukov@google.com>
Tue, 13 Feb 2018 17:47:16 +0000 (17:47 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Tue, 13 Feb 2018 17:47:16 +0000 (17:47 +0000)
commit18c0247852f717b3d72cbf0f8635e3108ff10613
tree7b0ea588d3574e158815445e1e51a7fa9e66c96f
parent267e0f4d5fe89204534051162fa656597c5f89dd
[clangd] Fixed findDefinitions to always return absolute paths.

Relative paths could be returned in some cases, e.g. when relative
path is used in compilation arguments. This led to crash when trying
to convert the path to URI.

llvm-svn: 325029
clang-tools-extra/clangd/XRefs.cpp
clang-tools-extra/unittests/clangd/TestFS.cpp
clang-tools-extra/unittests/clangd/TestFS.h
clang-tools-extra/unittests/clangd/XRefsTests.cpp