This is a workaround (adding a newline to the eof) in clangd to avoid the code
completion crash, see https://github.com/clangd/clangd/issues/332.
In principle, this is a clang bug, we should fix it in clang, but it is not
trivial.
Paths
| Differential D117456
[clangd] Avoid a code completion crash ClosedPublic Authored by hokein on Jan 17 2022, 12:11 AM.
Details
Summary This is a workaround (adding a newline to the eof) in clangd to avoid the code In principle, this is a clang bug, we should fix it in clang, but it is not
Diff Detail
Event TimelineHerald added subscribers: usaxena95, kadircet, arphaman. · View Herald TranscriptJan 17 2022, 12:11 AM Comment Actions This isn't an ideal fix but it's simple, we know the real fix is invasive, and 14 is upon us. This revision is now accepted and ready to land.Jan 17 2022, 12:47 AM Closed by commit rG884832407e47: [clangd] Avoid a code completion crash (authored by hokein). · Explain WhyJan 17 2022, 1:40 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 400470 clang-tools-extra/clangd/ClangdServer.cpp
clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
|