[PATCH] Fix -style argument to clang-format-diff.

christopher hopman cjhopman at gmail.com
Fri Sep 20 13:41:20 PDT 2013


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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1734.1.patch
Type: text/x-patch
Size: 553 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130920/186ef806/attachment.bin>


More information about the cfe-commits mailing list