projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caf3e95
)
Fix clang-format-diff.py script.
author
Daniel Jasper
<djasper@google.com>
Fri, 12 Apr 2013 13:42:36 +0000
(13:42 +0000)
committer
Daniel Jasper
<djasper@google.com>
Fri, 12 Apr 2013 13:42:36 +0000
(13:42 +0000)
llvm-svn: 179377
clang/tools/clang-format/clang-format-diff.py
patch
|
blob
|
history
diff --git
a/clang/tools/clang-format/clang-format-diff.py
b/clang/tools/clang-format/clang-format-diff.py
index 16c6ad2159f77ba6a5219c5d77baf04e5df75c33..afed40fc92fe58a16d27c949312c936174f3a3c9 100755
(executable)
--- a/
clang/tools/clang-format/clang-format-diff.py
+++ b/
clang/tools/clang-format/clang-format-diff.py
@@
-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)