Hi djasper,

Fixes a small typo for adding the -style argument to the clang-format command 
(style -> args.style).


http://llvm-reviews.chandlerc.com/D1734

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

Index: tools/clang-format/clang-format-diff.py
===================================================================
--- tools/clang-format/clang-format-diff.py
+++ tools/clang-format/clang-format-diff.py
@@ -71,7 +71,7 @@
     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)
Index: tools/clang-format/clang-format-diff.py
===================================================================
--- tools/clang-format/clang-format-diff.py
+++ tools/clang-format/clang-format-diff.py
@@ -71,7 +71,7 @@
     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)
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to