[PATCH] D37011: [clang-format] Fix lines regression in clang-format.py

Krasimir Georgiev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 22 07:29:04 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL311456: [clang-format] Fix lines regression in clang-format.py (authored by krasimir).

Repository:
  rL LLVM

https://reviews.llvm.org/D37011

Files:
  cfe/trunk/tools/clang-format/clang-format.py


Index: cfe/trunk/tools/clang-format/clang-format.py
===================================================================
--- cfe/trunk/tools/clang-format/clang-format.py
+++ cfe/trunk/tools/clang-format/clang-format.py
@@ -62,7 +62,7 @@
 
   # Determine range to format.
   if vim.eval('exists("l:lines")') == '1':
-    lines = vim.eval('l:lines')
+    lines = ['-lines', vim.eval('l:lines')]
   elif vim.eval('exists("l:formatdiff")') == '1':
     with open(vim.current.buffer.name, 'r') as f:
       ondisk = f.read().splitlines();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37011.112173.patch
Type: text/x-patch
Size: 533 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170822/1256f29e/attachment.bin>


More information about the cfe-commits mailing list