[clangd] Include textual diagnostic ID as Diagnostic.code.
authorSam McCall <sam.mccall@gmail.com>
Wed, 17 Apr 2019 12:35:16 +0000 (12:35 +0000)
committerSam McCall <sam.mccall@gmail.com>
Wed, 17 Apr 2019 12:35:16 +0000 (12:35 +0000)
commit641caa57cc14816d6bed71a08b810ede37fdc794
treed87b461bbcdfc12dc3c16fa09d8c726efc3e7458
parent9daacec816da9eb31d3b4dda8d4ce7d102aeebcf
[clangd] Include textual diagnostic ID as Diagnostic.code.

Reviewers: kadircet

Subscribers: ilya-biryukov, ioeric, MaskRay, jkorous, arphaman, jdoerfert, cfe-commits

Tags: #clang

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

llvm-svn: 358575
14 files changed:
clang-tools-extra/clangd/ClangdUnit.cpp
clang-tools-extra/clangd/Diagnostics.cpp
clang-tools-extra/clangd/Diagnostics.h
clang-tools-extra/clangd/Protocol.cpp
clang-tools-extra/clangd/Protocol.h
clang-tools-extra/test/clangd/compile-commands-path-in-initialize.test
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