[PATCH] [clang-tidy] Add a little python script that can run clang-tidy and apply fixes over an entire codebase.

Benjamin Kramer benny.kra at gmail.com
Mon Sep 8 04:49:42 PDT 2014


================
Comment at: clang-tidy/tool/run-clang-tidy.py:144-145
@@ +143,4 @@
+
+      # os.wait() would be nicer, but it confuses Popen.
+      time.sleep(0.05)
+
----------------
klimek wrote:
> Uuuh. Don't we have some way to pool() multiple processes?
There is multiprocessing.Pool which I couldn't get to work properly (it's part of the thread-with-processes emulation and adds all kinds of weird behavior to child processes). Then there's select which doesn't work on windows. Just sleeping seemed like the best option.

http://reviews.llvm.org/D5188






More information about the cfe-commits mailing list