r312536 - [clang-format] Fix lines=all case in clang-format.py

Krasimir Georgiev via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 5 06:58:54 PDT 2017


Author: krasimir
Date: Tue Sep  5 06:58:53 2017
New Revision: 312536

URL: http://llvm.org/viewvc/llvm-project?rev=312536&view=rev
Log:
[clang-format] Fix lines=all case in clang-format.py

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

Modified: cfe/trunk/tools/clang-format/clang-format.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-format/clang-format.py?rev=312536&r1=312535&r2=312536&view=diff
==============================================================================
--- cfe/trunk/tools/clang-format/clang-format.py (original)
+++ cfe/trunk/tools/clang-format/clang-format.py Tue Sep  5 06:58:53 2017
@@ -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])




More information about the cfe-commits mailing list