summaryrefslogtreecommitdiffstats
path: root/clang/tools/clang-format/clang-format.py
diff options
context:
space:
mode:
authorKrasimir Georgiev <krasimir@google.com>2017-08-22 14:28:01 +0000
committerKrasimir Georgiev <krasimir@google.com>2017-08-22 14:28:01 +0000
commit5fb51ddf293b7eb0da5589d0bc4844eba7c17229 (patch)
tree1f8ac8971b6249446a54e3892bd8260b09719b24 /clang/tools/clang-format/clang-format.py
parent9d1c094670c9503b73cb76d27d8cf07a9378c2f8 (diff)
downloadbcm5719-llvm-5fb51ddf293b7eb0da5589d0bc4844eba7c17229.tar.gz
bcm5719-llvm-5fb51ddf293b7eb0da5589d0bc4844eba7c17229.zip
[clang-format] Fix lines regression in clang-format.py
Summary: This patch fixes a regression after https://reviews.llvm.org/rL305665, which updates the structure of the `lines` variable. Reviewers: djasper Reviewed By: djasper Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D37011 llvm-svn: 311456
Diffstat (limited to 'clang/tools/clang-format/clang-format.py')
-rw-r--r--clang/tools/clang-format/clang-format.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/clang-format/clang-format.py b/clang/tools/clang-format/clang-format.py
index 2412566346f..187125ed09a 100644
--- a/clang/tools/clang-format/clang-format.py
+++ b/clang/tools/clang-format/clang-format.py
@@ -62,7 +62,7 @@ def main():
# 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();
OpenPOWER on IntegriCloud