From 17ba53cb9e0950625512fd939af91050bc6f3a3d Mon Sep 17 00:00:00 2001 From: pantor Date: Sat, 5 Oct 2024 16:47:03 +0200 Subject: [PATCH] add clang tidy --- .clang-tidy | 19 +++++++++++++++++++ scripts/clang_tidy.sh | 1 + 2 files changed, 20 insertions(+) create mode 100644 .clang-tidy create mode 100644 scripts/clang_tidy.sh diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..211bb9b --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,19 @@ +Checks: > + -*, + bugprone-*, + google-*, + misc-*, + modernize-*, + performance-*, + portability-*, + readability-*, + -google-readability-namespace-comments, + -google-runtime-int, + -google-runtime-references, + -misc-non-private-member-variables-in-classes, + -readability-named-parameter, + -readability-braces-around-statements, + -readability-magic-numbers + +# Turn all the warnings from the checks above into errors. +WarningsAsErrors: "" diff --git a/scripts/clang_tidy.sh b/scripts/clang_tidy.sh new file mode 100644 index 0000000..95e549f --- /dev/null +++ b/scripts/clang_tidy.sh @@ -0,0 +1 @@ +clang-tidy test/test.cpp -- -Iinclude -Ithird_party/include