Fix clang-format-diff.py script.
authorDaniel Jasper <djasper@google.com>
Fri, 12 Apr 2013 13:42:36 +0000 (13:42 +0000)
committerDaniel 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

index 16c6ad2159f77ba6a5219c5d77baf04e5df75c33..afed40fc92fe58a16d27c949312c936174f3a3c9 100755 (executable)
@@ -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)