diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..33f4317 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,9 @@ +Checks: "bugprone-*,\ + cert-*,\ + clang-analyzer-*,\ + cppcoreguidelines-*,\ + llvm-*,\ + misc-*,\ + modernize-*,\ + performance-*,\ + readability-*" diff --git a/CMakeLists.txt b/CMakeLists.txt index a591b65..efdd223 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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"