format-cpp: run clang-format in parallel
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 20 Jun 2023 20:32:51 +0000 (16:32 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 27 Jul 2023 18:12:50 +0000 (14:12 -0400)
commit04938faeeb4b28c5791029a2542848534ac83b17
treef08958a92d867801c336a3468f9b92b2d3ca75bc
parent78de3202c4229810299157a7b605213f2841ca2c
format-cpp: run clang-format in parallel

Use the -P option of GNU xargs to run multiple instances of clang-format
in parallel, which speeds up the execution quite a bit (depending on the
number of cores, of course).

Inspired by this babeltrace commit:

  http://git.efficios.com/?p=babeltrace.git;a=commit;h=66c3bce11973e6e96a3791c378a9e5f98ddaa280

Change-Id: I201535244ef4c3614dfd742ae6f1c427994e6147
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
format-cpp
This page took 0.025265 seconds and 4 git commands to generate.