This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Limit the size of synthesized fix message
ClosedPublic

Authored by ilya-biryukov on May 24 2019, 2:07 AM.

Diff Detail

Event Timeline

ilya-biryukov created this revision.May 24 2019, 2:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 24 2019, 2:07 AM
kadircet accepted this revision.May 24 2019, 2:58 AM

LGTM, thanks!

clang-tools-extra/clangd/Diagnostics.cpp
449 ↗(On Diff #201151)

or maybe just R = Code.split('\n').first ?

452 ↗(On Diff #201151)

no need for the check, already performed in take_front.

This revision is now accepted and ready to land.May 24 2019, 2:58 AM
ilya-biryukov marked 2 inline comments as done.
  • Address comments, simplify
This revision was automatically updated to reflect the committed changes.