aboutsummaryrefslogtreecommitdiff
path: root/tools/clang-format
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-04-12 13:42:36 +0000
committerDaniel Jasper <djasper@google.com>2013-04-12 13:42:36 +0000
commit7a9ed44173f9291534d935c5e4b11ddd24c01f29 (patch)
tree26bb7752aede2156b706e479955dc6ddfe829971 /tools/clang-format
parentc6d82ca9b28c39a988afd06a6359e09df033b846 (diff)
Fix clang-format-diff.py script.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179377 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/clang-format')
-rwxr-xr-xtools/clang-format/clang-format-diff.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/clang-format/clang-format-diff.py b/tools/clang-format/clang-format-diff.py
index 16c6ad2159..afed40fc92 100755
--- a/tools/clang-format/clang-format-diff.py
+++ b/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)