[clangd] Append "(fix available)" to diagnostic message when fixes are present.
authorEric Liu <ioeric@google.com>
Thu, 31 Jan 2019 16:09:25 +0000 (16:09 +0000)
committerEric Liu <ioeric@google.com>
Thu, 31 Jan 2019 16:09:25 +0000 (16:09 +0000)
commit00eaf6732e9f8e311603cfe97c913d052424cfaa
tree121edbcc9884689f6ee9c4f0004231adb9070eb2
parent992b53fd1617be518489d3f890afff5f14d7adae
[clangd] Append "(fix available)" to diagnostic message when fixes are present.

Summary:
This would make diagnostic fixits more discoverable, especially for
plugins like YCM.

Reviewers: sammccall

Reviewed By: sammccall

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

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

llvm-svn: 352764
clang-tools-extra/clangd/Diagnostics.cpp
clang-tools-extra/test/clangd/diagnostic-category.test
clang-tools-extra/test/clangd/diagnostics.test
clang-tools-extra/test/clangd/did-change-configuration-params.test
clang-tools-extra/test/clangd/execute-command.test
clang-tools-extra/test/clangd/fixits-codeaction.test
clang-tools-extra/test/clangd/fixits-command.test
clang-tools-extra/test/clangd/fixits-embed-in-diagnostic.test
clang-tools-extra/unittests/clangd/DiagnosticsTests.cpp