mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-24 15:15:38 +00:00
Added support for building with the clang-tidy static analyzer.
This commit is contained in:
parent
24fd136099
commit
aed9e3970b
|
@ -25,6 +25,15 @@ option(GL "Set to ON if targeting Desktop OpenGL" ${GL})
|
||||||
option(RPI "Set to ON to enable Raspberry Pi specific build" ${RPI})
|
option(RPI "Set to ON to enable Raspberry Pi specific build" ${RPI})
|
||||||
option(CEC "Set to ON to enable CEC" ${CEC})
|
option(CEC "Set to ON to enable CEC" ${CEC})
|
||||||
option(VLC_PLAYER "Set to ON to build the VLC-based video player" ${VLC_PLAYER})
|
option(VLC_PLAYER "Set to ON to build the VLC-based video player" ${VLC_PLAYER})
|
||||||
|
option(CLANG_TIDY "Set to ON to build using the clang-tidy static analyzer" ${CLANG_TIDY})
|
||||||
|
|
||||||
|
if (CLANG_TIDY)
|
||||||
|
message("-- Building with the clang-tidy static analyzer")
|
||||||
|
set(CMAKE_CXX_CLANG_TIDY "clang-tidy;-checks=*,-fuchsia-*,-hicpp-*,-llvm-*, \
|
||||||
|
-readability-braces-*,-google-readability-braces-*, \
|
||||||
|
-readability-uppercase-literal-suffix,-modernize-use-trailing-return-type, \
|
||||||
|
-cppcoreguidelines-avoid-magic-numbers,-readability-magic-numbers")
|
||||||
|
endif()
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------------------------
|
||||||
# OpenGL setup.
|
# OpenGL setup.
|
||||||
|
|
Loading…
Reference in a new issue