From e421048925daf819fb8b2d0ec59f65761403b688 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 9 Jun 2021 13:42:45 +0200 Subject: [PATCH] Correctly configure clang-tidy for src/wine-host --- tools/run-clang-tidy.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/tools/run-clang-tidy.sh b/tools/run-clang-tidy.sh index 489a0093..1e172bdd 100755 --- a/tools/run-clang-tidy.sh +++ b/tools/run-clang-tidy.sh @@ -2,17 +2,16 @@ # # Run clang-tidy on our code, with the correct compiler options set (since it # doesn't seem to extract those from the compilation database) -# -# TODO: There are a few use-after-move warning for the error codes in Boost's -# library code. Is there any way to silence these? set -euo pipefail # This is the repository's root cd "$(dirname "$0")/.." -exec run-clang-tidy -p build \ - -extra-arg='-m64' \ - -extra-arg='-std=c++2a' \ - -extra-arg='-I/usr/include/wine' \ - src/{common,plugin,wine-host} +shopt -s globstar nocaseglob +parallel clang-tidy --use-color --extra-arg='-m64' --extra-arg='-std=c++2a' \ + ::: src/plugin/**/*.cpp src/common/**/*.cpp +parallel clang-tidy --use-color --extra-arg='-m64' --extra-arg='-std=c++2a' \ + --extra-arg='-DWIN32' --extra-arg='-D_WIN32' --extra-arg='-D__WIN32__' --extra-arg='-D_WIN64' \ + --extra-arg='-isystem/usr/include/wine/windows' \ + ::: src/wine-host/**/*.cpp src/common/**/*.cpp