r179377 - Fix clang-format-diff.py script.
Daniel Jasper
djasper at google.com
Fri Apr 12 06:42:36 PDT 2013
Author: djasper
Date: Fri Apr 12 08:42:36 2013
New Revision: 179377
URL: http://llvm.org/viewvc/llvm-project?rev=179377&view=rev
Log:
Fix clang-format-diff.py script.
Modified:
cfe/trunk/tools/clang-format/clang-format-diff.py
Modified: cfe/trunk/tools/clang-format/clang-format-diff.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-format/clang-format-diff.py?rev=179377&r1=179376&r2=179377&view=diff
==============================================================================
--- cfe/trunk/tools/clang-format/clang-format-diff.py (original)
+++ cfe/trunk/tools/clang-format/clang-format-diff.py Fri Apr 12 08:42:36 2013
@@ -65,7 +65,7 @@ def formatRange(r, style):
text = f.read()
command = [binary, '-offset', str(offset), '-length', str(length)]
if style:
- command.append('-style', style)
+ command.extend(['-style', style])
p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
stdin=subprocess.PIPE)
stdout, stderr = p.communicate(input=text)
More information about the cfe-commits
mailing list