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

Issue 135653014: Search for the source root rather than checkout root in clang_format.py. (Closed)

Created:
6 years, 11 months ago by ajm
Modified:
6 years, 10 months ago
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Visibility:
Public.

Description

Search for the source root rather than checkout root in clang_format.py. Use the source root (src/ in Chromium) rather than the checkout root as the path from which to locate the clang-format binaries. webrtc uses the Chromium build/tools infrastructure but doesn't have src/ as a source root path. This change allows us to continue to use 'git cl format' in a standalone webrtc checkout (which would be nice.) BUG=240309 TESTED='git cl format' works on a trivial test change in both a Chromium and webrtc checkout. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=248651

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -8 lines) Patch
M clang_format.py View 1 2 chunks +9 lines, -8 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
ajm
Interested to get your thoughts on this, Nick. https://codereview.chromium.org/135653014/diff/40001/clang_format.py File clang_format.py (right): https://codereview.chromium.org/135653014/diff/40001/clang_format.py#newcode30 clang_format.py:30: source_root ...
6 years, 11 months ago (2014-01-28 01:54:31 UTC) #1
ajm
Small update: this actually used to work in a standalone webrtc checkout, but started to ...
6 years, 11 months ago (2014-01-28 02:06:31 UTC) #2
ncarter (slow)
LGTM based on our email discussion -- I think this is the right way to ...
6 years, 10 months ago (2014-01-30 00:35:05 UTC) #3
ajm
Thanks Nick. Robbie, could you review for owner approval?
6 years, 10 months ago (2014-01-30 01:22:37 UTC) #4
iannucci
lgtm with the stated caveats (i.e. this is all a hack and we need a ...
6 years, 10 months ago (2014-01-30 12:26:12 UTC) #5
ajm
On 2014/01/30 12:26:12, iannucci wrote: > lgtm with the stated caveats (i.e. this is all ...
6 years, 10 months ago (2014-02-04 01:36:33 UTC) #6
ajm
The CQ bit was checked by ajm@chromium.org
6 years, 10 months ago (2014-02-04 01:36:40 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajm@chromium.org/135653014/60001
6 years, 10 months ago (2014-02-04 01:36:49 UTC) #8
commit-bot: I haz the power
6 years, 10 months ago (2014-02-04 01:38:37 UTC) #9
Message was sent while issue was closed.
Change committed as 248651

Powered by Google App Engine
This is Rietveld 408576698