[PATCH] D57662: [clang-tidy] Parallelise clang-tidy-diff.py

Alexander Kornienko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 21 05:58:00 PST 2019


alexfh added a comment.

A few more comments.



================
Comment at: clang-tidy/tool/clang-tidy-diff.py:58
+      with lock:
+        sys.stdout.write((' '.join(command)).decode('utf-8') + '\n' + stdout.decode('utf-8') + '\n')
+        if stderr:
----------------
nit: let's wrap this to 80 characters.


================
Comment at: clang-tidy/tool/clang-tidy-diff.py:133
+    if args.export_fixes:
+      print("error: -export-fixes and -j are mutually exclusive.")
+      sys.exit(1)
----------------
What's wrong with -export-fixes and -j? Different clang-tidy processes could export the fixes to different files (e.g. the -export-fixes= value could be used as a prefix of the filename with a sequential or random suffix. WDYT?


================
Comment at: clang-tidy/tool/clang-tidy-diff.py:179
+  # Run a pool of clang-tidy workers.
+  run_workers(max_task, run_tidy, task_queue, lock, args.timeout)
 
----------------
"start_workers" would be a clearer name, IMO.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57662/new/

https://reviews.llvm.org/D57662





More information about the cfe-commits mailing list