This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Better handling `\n` in the synthesized diagnostic message.
ClosedPublic

Authored by hokein on Jan 14 2022, 2:23 AM.

Details

Summary

The newline-eof fix was rendered as "insert '...'", this patch
special-case it.

Diff Detail

Event Timeline

hokein created this revision.Jan 14 2022, 2:23 AM
hokein requested review of this revision.Jan 14 2022, 2:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 14 2022, 2:23 AM
sammccall accepted this revision.Jan 14 2022, 3:43 AM
sammccall added inline comments.
clang-tools-extra/clangd/Diagnostics.cpp
635

or "newline"?

This revision is now accepted and ready to land.Jan 14 2022, 3:43 AM