Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(386)

Issue 134313007: Depot tools: use the clang-format binaries that are now included (Closed)

Created:
6 years, 11 months ago by ncarter (slow)
Modified:
6 years, 11 months ago
Reviewers:
Nico, M-A Ruel, iannucci, brettw
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, ilevy-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Visibility:
Public.

Description

Depot tools: use the clang-format binaries that are now included as part of the Chromium checkout. This follows the approach used by gn. Changes include: - in-the-PATH clang-format trampoline scripts - clang_format.py, which finds clang-format binaries inside of Chrome - Hook 'git cl format' to the new binaries and scripts - Rearrange some code, for reuse between clang_format.py and gn.py BUG=240309 TEST=presubmits (one failure on mac, but it fails on a clean checkout too) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=245074

Patch Set 1 #

Patch Set 2 : Fix up some error messages and docstrings. #

Patch Set 3 : Some more cleanup. #

Patch Set 4 : chmod +x gn.py clang-format clang_format.py. #

Patch Set 5 : sync to TOT #

Patch Set 6 : Upload with --no-find-copies #

Total comments: 2

Patch Set 7 : Add back the -i option. #

Total comments: 1

Patch Set 8 : Apply iannucci's fix #

Patch Set 9 : Fixed gclient_utils_test.py #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -62 lines) Patch
A clang-format View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
A clang-format.bat View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
A clang_format.py View 1 2 3 1 chunk +90 lines, -0 lines 0 comments Download
M gclient_utils.py View 1 2 3 4 5 6 7 3 chunks +22 lines, -3 lines 0 comments Download
M git_cl.py View 1 2 3 4 5 6 4 chunks +22 lines, -17 lines 0 comments Download
M gn.py View 1 2 3 1 chunk +6 lines, -34 lines 0 comments Download
M tests/gclient_utils_test.py View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -8 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
ncarter (slow)
This is ready for a review (though obviously we will land the chrome part first). ...
6 years, 11 months ago (2014-01-11 02:00:38 UTC) #1
ncarter (slow)
On 2014/01/11 02:00:38, ncarter wrote: > This is ready for a review (though obviously we ...
6 years, 11 months ago (2014-01-11 21:01:46 UTC) #2
Nico
On Sat, Jan 11, 2014 at 1:01 PM, <nick@chromium.org> wrote: > On 2014/01/11 02:00:38, ncarter ...
6 years, 11 months ago (2014-01-11 21:05:58 UTC) #3
Nico
lgtm I think this looks pretty good as-is. (Before announcing this more widely, we might ...
6 years, 11 months ago (2014-01-11 23:33:07 UTC) #4
ncarter (slow)
+maruel, for OWNERS +brettw, FYI, some gn script refactoring
6 years, 11 months ago (2014-01-13 20:23:43 UTC) #5
M-A Ruel
I'll let Robbie do the actual review on my behalf.
6 years, 11 months ago (2014-01-13 20:42:06 UTC) #6
brettw
okey dokey!
6 years, 11 months ago (2014-01-13 20:44:03 UTC) #7
ncarter (slow)
iannucci: ping
6 years, 11 months ago (2014-01-14 23:32:08 UTC) #8
enne (OOO)
https://codereview.chromium.org/134313007/diff/140001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/134313007/diff/140001/git_cl.py#newcode2365 git_cl.py:2365: cmd = [sys.executable, script, '-p0', '-style', 'Chromium'] Are you ...
6 years, 11 months ago (2014-01-15 00:59:47 UTC) #9
ncarter (slow)
Fixed and retested. https://codereview.chromium.org/134313007/diff/140001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/134313007/diff/140001/git_cl.py#newcode2365 git_cl.py:2365: cmd = [sys.executable, script, '-p0', '-style', ...
6 years, 11 months ago (2014-01-15 01:18:36 UTC) #10
ncarter (slow)
Fixed and retested. https://codereview.chromium.org/134313007/diff/140001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/134313007/diff/140001/git_cl.py#newcode2365 git_cl.py:2365: cmd = [sys.executable, script, '-p0', '-style', ...
6 years, 11 months ago (2014-01-15 01:18:37 UTC) #11
Nico
iannucci: ping ping ping
6 years, 11 months ago (2014-01-15 17:32:28 UTC) #12
iannucci
My only objection is the amount of chromium-specific code which is introduced here to depot_tools ...
6 years, 11 months ago (2014-01-15 20:29:31 UTC) #13
ncarter (slow)
Updated. I'm testing against a fresh cygwin checkout now. Do I submit via cq or ...
6 years, 11 months ago (2014-01-15 23:20:26 UTC) #14
ncarter (slow)
On 2014/01/15 23:20:26, ncarter wrote: > Updated. I'm testing against a fresh cygwin checkout now. ...
6 years, 11 months ago (2014-01-15 23:21:15 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nick@chromium.org/134313007/310001
6 years, 11 months ago (2014-01-15 23:50:10 UTC) #16
commit-bot: I haz the power
Presubmit check for 134313007-310001 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 11 months ago (2014-01-15 23:52:23 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nick@chromium.org/134313007/370001
6 years, 11 months ago (2014-01-16 02:28:02 UTC) #18
commit-bot: I haz the power
Presubmit check for 134313007-370001 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 11 months ago (2014-01-16 02:30:45 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nick@chromium.org/134313007/370001
6 years, 11 months ago (2014-01-16 02:43:06 UTC) #20
commit-bot: I haz the power
6 years, 11 months ago (2014-01-16 02:44:43 UTC) #21
Message was sent while issue was closed.
Change committed as 245074

Powered by Google App Engine
This is Rietveld 408576698