diff options
-rwxr-xr-x | tools/clang-format/clang-format-diff.py | 2 |
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) |