Currently warnings when parsing .clang-tidy are printed directly to errs.
This is less than ideal as there is no synchronisation printing to errs, leading to potential races.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Nice! From here it seems like mostly a question of plumbing/refactoring on the clangd side to be able to surface these diagnostics, similar to how you did it with config files.
At some point, particularly if we also support .clang-format files, it might even be worth reconsidering if there's a lightweight way to become a language-server for such files. Less in order to provide quickfixes and code completion (which would be huge effort), and more to be able to surface diagnostics for files that are opened in the editor (rather than waiting until clangd tries to parse them for some other reason)