[cfe-dev] ClangD - Add option to not Drop diagnostics outside the main file?
Dan Walmsley via cfe-dev
cfe-dev at lists.llvm.org
Thu Aug 9 15:35:03 PDT 2018
Hi,
Im integrating clangd into an open source IDE (we used to use libclang)
Any how if I have:
main.cpp and it includes header1.h
and header1.h includes header2.h
and header2.h is missing.
I start to get diagnostics saying x type is not defined (even though it is, because once the missing file is hit, the analysis stops)
I noticed at this line:
https://github.com/llvm-mirror/clang-tools-extra/blame/86961faaaf0b56b1c5dac2ed979987879cbc5294/clangd/Diagnostics.cpp#L376
The diagnostic from the missing file is dropped. If I had the option to receive diagnostics from outside the main file, this would be really useful for this scenario.
The user could then see immediately that there was a diagnostic in header1.h and fix it.
Thanks in advance for any advice on this matter.
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180809/5039667b/attachment.html>
More information about the cfe-dev
mailing list