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

Alexander Kornienko alexfh at google.com
Mon Sep 8 07:20:58 PDT 2014


REPOSITORY
  rL LLVM

================
Comment at: clang-tidy/tool/run-clang-tidy.py:120
@@ +119,3 @@
+  retval = 0
+  try:
+    while True:
----------------
bkramer wrote:
> alexfh wrote:
> > I'm still a bit concerned about reimplementing xargs in Python. Especially if you have to handle ctrl-c manually.
> In fact I had a version lying around that just calls xargs, but I don't know how to make it generate a random file name for each clang-tidy invocation. We use it to write out the fixits yaml.
Actually, if we want to support Windows properly, we can't rely on xargs and bash. So it may be a reasonable sacrifice to the gods of portability.

http://reviews.llvm.org/D5188






More information about the cfe-commits mailing list