[clangd] Make FixIt message be consistent with the clang-tidy diagnostic message.
authorHaojian Wu <hokein@google.com>
Mon, 1 Jul 2019 08:05:53 +0000 (08:05 +0000)
committerHaojian Wu <hokein@google.com>
Mon, 1 Jul 2019 08:05:53 +0000 (08:05 +0000)
commitb739b91cd3a46c61f91a98c44cac8c9594e7094e
treec8911df522d589fd8f40f97ec672c5f14bb6c104
parentfcda45a9eb88b2bd0500c71554f560700f59dedd
[clangd] Make FixIt message be consistent with the clang-tidy diagnostic message.

Summary:
We strip the "[clang-tidy-check]" suffix from the clang-tidy diagnostics, we
should be consistent with the message in FixIt (strip the suffix as well).

Reviewers: sammccall

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

Tags: #clang

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

llvm-svn: 364731
clang-tools-extra/clangd/Diagnostics.cpp
clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp