From 8ca212d142acec16ca9e97ebc87d490efabe823b Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Fri, 25 Mar 2016 08:19:21 +0100 Subject: [PATCH] linux: example how to use clang tidy --- build.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/build.sh b/build.sh index 2aacd4eff2..467f0742eb 100755 --- a/build.sh +++ b/build.sh @@ -191,6 +191,20 @@ if [[ "$clangTidy" -eq 1 ]] && [[ -x `which clang-tidy` ]]; then for cpp in `cat $cpp_list` do + # Example: + # clang-tidy-3.8 -p build_dev/compile_commands.json plugins/GSdx/GSTextureCache.cpp -checks='modernize-loop-convert' -fix + # List of modernize check + # modernize-loop-convert + # modernize-make-unique + # modernize-pass-by-value + # modernize-redundant-void-arg + # modernize-replace-auto-ptr + # modernize-shrink-to-fit + # modernize-use-auto + # modernize-use-default + # modernize-use-nullptr + # modernize-use-override + # Check all, likely severals millions of log... #clang-tidy -p $compile_json $cpp -checks='*' -header-filter='.*'