When building preamble, clangd truncates file contents. This yielded
errnous warnings in some cases.
This patch fixes the issue by turning off no-newline-at-eof warnings whenever
the file has more contents than the preamble.
Differential D100501
[cland] Dont emit missing newline warnings when building preamble kadircet on Apr 14 2021, 12:20 PM. Authored by
Details When building preamble, clangd truncates file contents. This yielded This patch fixes the issue by turning off no-newline-at-eof warnings whenever
Diff Detail
Event TimelineComment Actions Thanks! And sorry for the delay, I somehow missed it in my inbox.
Comment Actions A too-late drive-by - maybe we'd be better detecting these in clang never emitting these Comment Actions
That's a good point. But PP doesn't know if there's trailing content or not (in clangd's case). |
it seems that there is another similar warning warn_cxx98_compat_no_newline_eof, I think we probably should cover it.