[PATCH] D60822: [clangd] Use shorter, more recognizable codes for diagnostics.
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 17 06:32:32 PDT 2019
sammccall created this revision.
sammccall added a reviewer: kadircet.
Herald added subscribers: cfe-commits, arphaman, jkorous, MaskRay, ioeric, ilya-biryukov.
Herald added a project: clang.
- for warnings, use "foo" if the warning is controlled by -Wfoo
- for errors, keep using the internal name (there's nothing better) but drop the err_ prefix
This comes at the cost of uniformity, it's no longer totally obvious
exactly what the code field contains. But the -Wname flags are so much
more useful to end-users than the internal warn_foo that this seems worth it.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D60822
Files:
clangd/Diagnostics.cpp
test/clangd/compile-commands-path-in-initialize.test
test/clangd/diagnostic-category.test
test/clangd/diagnostics.test
test/clangd/did-change-configuration-params.test
test/clangd/execute-command.test
test/clangd/fixits-codeaction.test
test/clangd/fixits-command.test
test/clangd/fixits-embed-in-diagnostic.test
unittests/clangd/DiagnosticsTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60822.195555.patch
Type: text/x-patch
Size: 9138 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190417/3d98c65c/attachment.bin>
More information about the cfe-commits
mailing list