[PATCH] D41145: git-clang-format: refactor to support upcoming --staged flag

Mark Lodato via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 12 17:16:13 PST 2017


lodato created this revision.
lodato added reviewers: djasper, klimek, Alexander-Shukaev.

The only user-visible change is rewriting of the --help message to make the different modes more clear.

Internally, this is a significant refactoring to make the source and destination of the diff to be more clear by using subclasses rather than conditionals. The purpose is to support the next patch in this series, which adds support for a --staged flag. But even if that does not go through, the intent is for this code to be a readability improvement.


https://reviews.llvm.org/D41145

Files:
  google3/third_party/llvm/llvm/tools/clang/tools/clang-format/git-clang-format

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41145.126652.patch
Type: text/x-patch
Size: 18100 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171213/22f47477/attachment.bin>


More information about the cfe-commits mailing list