From 2cd2237a04e0a1dec463e0c7858f4e251bbec6e0 Mon Sep 17 00:00:00 2001 From: Krasimir Georgiev Date: Tue, 5 Sep 2017 13:58:53 +0000 Subject: [PATCH] [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 --- tools/clang-format/clang-format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) -- 2.40.0