This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Add a flag to disable formatting of tweak edits
ClosedPublic

Authored by kadircet on Jun 28 2021, 9:12 AM.

Details

Summary

Some tweaks might edit file types not supported by clang-format. This
patch gives them a way to signal that they do not require formatting.

Diff Detail

Event Timeline

kadircet created this revision.Jun 28 2021, 9:12 AM
kadircet requested review of this revision.Jun 28 2021, 9:12 AM
sammccall accepted this revision.Jun 28 2021, 9:17 AM

LG - I do think a config knob for this would be nice one day.
As discussed offline it would also cover rename, code complete insertion...

This revision is now accepted and ready to land.Jun 28 2021, 9:17 AM
kadircet updated this revision to Diff 354941.Jun 28 2021, 9:52 AM

Add a test

This revision was automatically updated to reflect the committed changes.