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

Unified Diff: tools/clang/scripts/run_tool.py

Issue 448693003: Fix bitrot in Chrome clang tool infrastructure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/clang/scripts/run_tool.py
diff --git a/tools/clang/scripts/run_tool.py b/tools/clang/scripts/run_tool.py
index 903235d43dbc31c9dae239b447f4693818878c64..03b4100a2f8da44916932c9de90661e2e2eafeff 100755
--- a/tools/clang/scripts/run_tool.py
+++ b/tools/clang/scripts/run_tool.py
@@ -214,7 +214,7 @@ def _ApplyEdits(edits, clang_format_diff_path):
f.truncate()
f.write(contents)
if clang_format_diff_path:
- if subprocess.call('git diff -U0 %s | python %s -style=Chromium' % (
+ if subprocess.call('git diff -U0 %s | python %s -i -p1 -style=file ' % (
k, clang_format_diff_path), shell=True) != 0:
print 'clang-format failed for %s' % k
print 'Applied %d edits to %d files' % (edit_count, len(edits))

Powered by Google App Engine
This is Rietveld 408576698