mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-06 19:40:10 +02:00
Correctly configure clang-tidy for src/wine-host
This commit is contained in:
@@ -2,17 +2,16 @@
|
|||||||
#
|
#
|
||||||
# Run clang-tidy on our code, with the correct compiler options set (since it
|
# Run clang-tidy on our code, with the correct compiler options set (since it
|
||||||
# doesn't seem to extract those from the compilation database)
|
# 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
|
set -euo pipefail
|
||||||
|
|
||||||
# This is the repository's root
|
# This is the repository's root
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
exec run-clang-tidy -p build \
|
shopt -s globstar nocaseglob
|
||||||
-extra-arg='-m64' \
|
parallel clang-tidy --use-color --extra-arg='-m64' --extra-arg='-std=c++2a' \
|
||||||
-extra-arg='-std=c++2a' \
|
::: src/plugin/**/*.cpp src/common/**/*.cpp
|
||||||
-extra-arg='-I/usr/include/wine' \
|
parallel clang-tidy --use-color --extra-arg='-m64' --extra-arg='-std=c++2a' \
|
||||||
src/{common,plugin,wine-host}
|
--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
|
||||||
|
|||||||
Reference in New Issue
Block a user