File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ This helps to apply the [Include What You Use](https://github.com/AliceO2Group/O
6969Here is an example of how to run the ` misc-include-cleaner ` check in parallel on all ` .h ` , ` .cxx ` , ` .C ` files in the current directory.
7070
7171``` bash
72- parallel " clang-tidy --fix -checks=-*,misc-include-cleaner {}; echo \" {} \$ ?\" " ::: " $( find . -name " *.h " -o -name " *.cxx " -o -name " *.C " ) " > " clang-tidy.log"
72+ find . -name " *.h " -o -name " *.cxx " -o -name " *.C " | parallel " clang-tidy --fix -checks=-*,misc-include-cleaner {}; echo \" {} \$ ?\" " > " clang-tidy.log"
7373```
7474
7575The [ ` parallel ` ] ( https://www.gnu.org/software/parallel/ ) command is used to parallelise the execution of the ` clang-tidy ` command for all files.
@@ -100,7 +100,7 @@ The report will be stored in the `err.log` file.
100100To run a parallelised analysis of all ` .h ` , ` .cxx ` , ` .C ` files in the current directory, execute:
101101
102102``` bash
103- parallel " cppcheck --language=c++ --std=c++20 --enable=style --check-level=exhaustive --suppressions-list=cppcheck_config {}" ::: " $( find . -name " *.h " -o -name " *.cxx " -o -name " *.C " ) " 2> " err.log"
103+ find . -name " *.h " -o -name " *.cxx " -o -name " *.C " | parallel " cppcheck --language=c++ --std=c++20 --enable=style --check-level=exhaustive --suppressions-list=cppcheck_config {}" 2> " err.log"
104104```
105105
106106Note: It is possible to parallelise the execution with the ` -j ` option instead but it usually produces less results than analysing files independently.
You can’t perform that action at this time.
0 commit comments