Nathan Ridge
Nathan Ridge
> But it only shows the errors, how can it give me warnings like editor do?  Unfortunately this is not currently supported, but we have https://github.com/clangd/clangd/issues/1447 open for adding...
> I found a workaround that adding `WarningsAsErrors` and `-WFlag` to config file to enable clang-tidy and compiler waring/errors in clangd `--Check` mode, but the diagnostics of `unused include` specified...
The diagnostic is coming from the preamble --> this is an artifact of clangd's preamble optimization. Clangd is basically processing the file in two steps that are roughly equivalent to:...