[PATCH] D12407: [clang-format-vs] Add an option to reformat source code when file is saved to disk

Teodor MICU via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 7 02:00:42 PDT 2017


mteodor added a comment.

In https://reviews.llvm.org/D12407#314671, @klimek wrote:

> I think we'll want somebody to find out whether there are simpler ways to
>  implement this.


**Format on save** was implemented by https://reviews.llvm.org/D29221.

What's the new functionality in the **reformat** implementation?
Always trigger a (re)format even if there are no changes? Probably not a good idea.


https://reviews.llvm.org/D12407





More information about the cfe-commits mailing list