This is an archive of the discontinued LLVM Phabricator instance.

[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
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.

Diff Detail

Event Timeline

hokein created this revision.Jan 17 2022, 12:11 AM
hokein requested review of this revision.Jan 17 2022, 12:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 17 2022, 12:11 AM
sammccall accepted this revision.Jan 17 2022, 12:47 AM

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
This revision was automatically updated to reflect the committed changes.