... | ... | @@ -77,7 +77,7 @@ The previous example will work just with a very simple example contained in one |
|
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
|
|
~~~
|
|
|
|
|
|
This will create a file named `compile_commands.json` that we will use with the following python script from the [LLVM project](https://gitlab.inria.fr/felisce/extra/documentation/-/raw/master/Resources/Clang-tidy%20modernize/run-clang-tidy.py?inline=false)).
|
|
|
This will create a file named `compile_commands.json` that we will use with the following python script from the [LLVM project](run-clang-tidy.py)).
|
|
|
|
|
|
Once we have the script and the json file we can check and fix the whole project by the following way:
|
|
|
|
... | ... | @@ -85,7 +85,7 @@ Once we have the script and the json file we can check and fix the whole project |
|
|
run-clang-tidy.py -header-filter='.*' -checks='-*,modernize-use-override' -fix
|
|
|
~~~
|
|
|
|
|
|
You can run simmultaneously all the possible modernize commands using the following [shell script]( https://gitlab.inria.fr/felisce/extra/documentation/-/raw/master/Resources/Clang-tidy%20modernize/modernize.sh?inline=false).
|
|
|
You can run simmultaneously all the possible modernize commands using the following [shell script](modernize.sh).
|
|
|
|
|
|
~~~sh
|
|
|
sh modernize.sh
|
... | ... | |