DescriptionSearch 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. #Messages
Total messages: 9 (0 generated)
|