summaryrefslogtreecommitdiffstats
path: root/tools/clang-format
diff options
context:
space:
mode:
authorKrasimir Georgiev <krasimir@google.com>2017-09-05 13:58:53 +0000
committerKrasimir Georgiev <krasimir@google.com>2017-09-05 13:58:53 +0000
commit2cd2237a04e0a1dec463e0c7858f4e251bbec6e0 (patch)
tree1cd821242d5dc4b3cfb726f1c617ef7277fab83d /tools/clang-format
parent7a5ffef931cd91a26f202128695e4f4d82424117 (diff)
[clang-format] Fix lines=all case in clang-format.py
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@312536 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/clang-format')
-rw-r--r--tools/clang-format/clang-format.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/clang-format/clang-format.py b/tools/clang-format/clang-format.py
index 187125ed09..5fe592a920 100644
--- a/tools/clang-format/clang-format.py
+++ b/tools/clang-format/clang-format.py
@@ -92,7 +92,7 @@ def main():
# Call formatter.
command = [binary, '-style', style, '-cursor', str(cursor)]
- if lines != 'all':
+ if lines != ['-lines', 'all']:
command += lines
if fallback_style:
command.extend(['-fallback-style', fallback_style])