You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which is probably because of this diag is issued before we start parsing the main file(inside ReplayPreamble). Hence StoreDiags doesn't get a BeginSource call yet, therefore doesn't have LangOpts.
Summary:
Some clang-tidy checkers, e.g. llvm-include-order can emit diagnostics
at this callback (as mentioned in the comments).
Clangd was resetting diag consumer to IgnoreDiags before sending EOF, hence we
were unable to emit diagnostics for such checkers.
This patch changes the order of that reset and preprocosser event to make sure
we emit that diag.
Fixesclangd/clangd#314.
Reviewers: sammccall
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D83178
1 we find that check about header files cannot be displayed on the client.
for example: [llvm-order-check] which clang-tidy can check it but clangd can not display it.
2 From the log of clangd, we also find that the line number of warning is not correct when it comes to header files.
The text was updated successfully, but these errors were encountered: