Add clang-tidy

This commit is contained in:
prisixia 2023-05-04 10:17:31 +02:00
parent fa33186a37
commit b5ed32e7d5
Signed by: prisixia
GPG Key ID: CB939A148C9B4125
2 changed files with 12 additions and 0 deletions

9
.clang-tidy Normal file
View File

@ -0,0 +1,9 @@
Checks: "bugprone-*,\
cert-*,\
clang-analyzer-*,\
cppcoreguidelines-*,\
llvm-*,\
misc-*,\
modernize-*,\
performance-*,\
readability-*"

View File

@ -9,6 +9,9 @@ if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release")
endif()
# For clang-tidy
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(SOURCE_LIST
"src/speciesgen.cpp"
"src/error.cpp"