Set "clang", "clang-tidy" as the source to the diagnostics, so that
client can distinguish diagnostics from clang-tidy.
Details
Diff Detail
- Repository
- rCTE Clang Tools Extra
- Build Status
Buildable 28467 Build 28466: arc lint + arc unit
Event Timeline
clangd/ClangdUnit.cpp | ||
---|---|---|
380 | Preamble diagnostics seem to be missing the source. | |
clangd/Diagnostics.h | ||
72 | +1, why do we need ID? | |
74 | Let's introduce an enum with two values here and convert to string at the LSP boundaries. |
add @kadircet as a reviewer, since @ilya-biryukov is OOO.
clangd/ClangdUnit.cpp | ||
---|---|---|
380 | good catch, I missed this. | |
clangd/Diagnostics.cpp | ||
381 | See my comment above. | |
clangd/Diagnostics.h | ||
72 | Yes, we do need this ID to determine whether a diagnostic is from clang-tidy, CangTidyContext::getCheckName. |
Preamble diagnostics seem to be missing the source.
Could we add a test they also have the "source" set? "unresolved include" should be the easiest to get.