Adding 'git cl format' command for clang-format.
As per the discussion in https://groups.google.com/a/chromium.org/forum/?fromgroups=#!topic/chromium-dev/Hl2QPNQ9E5o, this CL adds a 'git cl format' command. Users may use it at their own discretion. By default, it generates a diff against the local tracking (upstream) branch and runs clang-format-diff on that diff. When given the '--full' flag, it instead identifies all .cc, .cpp, and .h files in the diff and runs clang-format on the entirety of each of those files. Review URL: https://chromiumcodereview.appspot.com/14629012 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@198477 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please
register
or
sign in
to comment