[clangd] Simplify the callside of URI::resolve, NFC.
authorHaojian Wu <hokein@google.com>
Mon, 23 Sep 2019 14:39:37 +0000 (14:39 +0000)
committerHaojian Wu <hokein@google.com>
Mon, 23 Sep 2019 14:39:37 +0000 (14:39 +0000)
commitb70323e5d35171ae32ea10ff49e86cdb4b118c30
tree2b01ec272559b3391658190787cd90760586311b
parentf97fdf5792c39fd2fe47e7c64e0e97adbf281b2b
[clangd] Simplify the callside of URI::resolve, NFC.

Summary:
- Add a overrloded URI::resolve, which accepts a string URI;
- also fixed some callside that don't check the error;

Reviewers: kadircet

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D67916

llvm-svn: 372617
clang-tools-extra/clangd/CodeComplete.cpp
clang-tools-extra/clangd/FindSymbols.cpp
clang-tools-extra/clangd/IncludeFixer.cpp
clang-tools-extra/clangd/URI.cpp
clang-tools-extra/clangd/URI.h
clang-tools-extra/clangd/index/Background.cpp
clang-tools-extra/clangd/index/BackgroundIndexLoader.cpp