[clangd][tests] Fix handling of EOF in delimited input
authorJan Korous <jkorous@apple.com>
Mon, 23 Apr 2018 15:55:07 +0000 (15:55 +0000)
committerJan Korous <jkorous@apple.com>
Mon, 23 Apr 2018 15:55:07 +0000 (15:55 +0000)
commit624351513903e137de56f7f0b88037fff1ea98bb
treea6c48ad68ad2e471ae93cff99bf781248c202255
parentadc59d7076350c808364b37c83281298f91ae7ed
[clangd][tests] Fix handling of EOF in delimited input

Request in delimited input ended by EOF shouldn't be an error state.
Comments at the end of test file shouldn't be logged as an error state.
Input mirroring should work for the last request in delimited test file.

llvm-svn: 330608
clang-tools-extra/clangd/JSONRPCDispatcher.cpp
clang-tools-extra/test/clangd/delimited-input-comment-at-the-end.test [new file with mode: 0644]