Set "clang", "clang-tidy" as the source to the diagnostics, so that
client can distinguish diagnostics from clang-tidy.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clangd/ClangdUnit.cpp | ||
---|---|---|
380 ↗ | (On Diff #188112) | Preamble diagnostics seem to be missing the source. |
clangd/Diagnostics.h | ||
72 ↗ | (On Diff #188112) | +1, why do we need ID? |
74 ↗ | (On Diff #188112) | Let's introduce an enum with two values here and convert to string at the LSP boundaries. |
Comment Actions
add @kadircet as a reviewer, since @ilya-biryukov is OOO.
clangd/ClangdUnit.cpp | ||
---|---|---|
380 ↗ | (On Diff #188112) | good catch, I missed this. |
clangd/Diagnostics.cpp | ||
381 ↗ | (On Diff #188112) | See my comment above. |
clangd/Diagnostics.h | ||
72 ↗ | (On Diff #188112) | Yes, we do need this ID to determine whether a diagnostic is from clang-tidy, CangTidyContext::getCheckName. |