[PATCH] Add scan-build python implementation

Laszlo Nagy rizsotto.mailinglist at gmail.com
Mon May 11 03:19:56 PDT 2015


small fixes


http://reviews.llvm.org/D9600

Files:
  tools/scan-build2/libscanbuild/clang.py
  tools/scan-build2/libscanbuild/driver.py

Index: tools/scan-build2/libscanbuild/clang.py
===================================================================
--- tools/scan-build2/libscanbuild/clang.py
+++ tools/scan-build2/libscanbuild/clang.py
@@ -5,7 +5,7 @@
 # License. See LICENSE.TXT for details.
 """ This module is responsible for the Clang executable.
 
-Since Clang command line interface is so reach, but this project is using only
+Since Clang command line interface is so rich, but this project is using only
 a subset of that, it makes sense to create a function specific wrapper. """
 
 import subprocess
Index: tools/scan-build2/libscanbuild/driver.py
===================================================================
--- tools/scan-build2/libscanbuild/driver.py
+++ tools/scan-build2/libscanbuild/driver.py
@@ -122,7 +122,7 @@
         generator = (dict(cmd, **consts) for cmd in json.load(handle)
                      if not exclude(cmd['file']))
         # when verbose output requested execute sequentially
-        pool = multiprocessing.Pool(1 if 2 <= args.verbose else None)
+        pool = multiprocessing.Pool(1 if 2 < args.verbose else None)
         for current in pool.imap_unordered(run, generator):
             if current is not None:
                 # display error message from the static analyzer

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9600.25455.patch
Type: text/x-patch
Size: 1292 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150511/c52d2443/attachment.bin>


More information about the cfe-commits mailing list