Эх сурвалжийг харах

Fix clang-format-diff.py script.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179377 91177308-0d34-0410-b5e6-96231b3b80d8
Daniel Jasper 12 жил өмнө
parent
commit
7a9ed44173

+ 1 - 1
tools/clang-format/clang-format-diff.py

@@ -65,7 +65,7 @@ def formatRange(r, style):
     text = f.read()
     text = f.read()
   command = [binary, '-offset', str(offset), '-length', str(length)]
   command = [binary, '-offset', str(offset), '-length', str(length)]
   if style:
   if style:
-    command.append('-style', style)
+    command.extend(['-style', style])
   p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
   p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
                        stdin=subprocess.PIPE)
                        stdin=subprocess.PIPE)
   stdout, stderr = p.communicate(input=text)
   stdout, stderr = p.communicate(input=text)