[clangd] Cleanup error consumption code. NFC
authorIlya Biryukov <ibiryukov@google.com>
Thu, 22 Nov 2018 16:20:12 +0000 (16:20 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Thu, 22 Nov 2018 16:20:12 +0000 (16:20 +0000)
commit27b83d230d182d2fab0e132f7f75f203cf71d95a
tree50702ee0f6b11514dda4c6c9463963cb5d4f943f
parent893413318fae40a9b6e99b8ece439383906b29aa
[clangd] Cleanup error consumption code. NFC

- Remove reimplementations of llvm::consumeError.
- Simplify test code by using EXPECT_ERROR where it fits.

llvm-svn: 347472
clang-tools-extra/clangd/ClangdServer.cpp
clang-tools-extra/unittests/clangd/Matchers.h
clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp
clang-tools-extra/unittests/clangd/URITests.cpp