]> granicus.if.org Git - clang/commitdiff
Fix clang-format-diff.py to accept -style again.
authorDaniel Jasper <djasper@google.com>
Sat, 21 Sep 2013 10:05:02 +0000 (10:05 +0000)
committerDaniel Jasper <djasper@google.com>
Sat, 21 Sep 2013 10:05:02 +0000 (10:05 +0000)
Copy and paste error in r190935..

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191137 91177308-0d34-0410-b5e6-96231b3b80d8

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

index cb8d94212ab3dc9e77908d964414787362153838..7c141785a3256137f257653297c624845f4f7910 100755 (executable)
@@ -71,7 +71,7 @@ def main():
     command = [binary, '-i', filename]
     command.extend(lines)
     if args.style:
-      command.extend(['-style', style])
+      command.extend(['-style', args.style])
     p = subprocess.Popen(command, stdout=subprocess.PIPE,
                          stderr=subprocess.PIPE,
                          stdin=subprocess.PIPE)