From 17fab0f0c907483203447f6bd5017d3a00da86d4 Mon Sep 17 00:00:00 2001 From: shenleban tongying Date: Sun, 25 Dec 2022 02:59:37 -0500 Subject: [PATCH 1/2] dev: add .clang-tidy --- .clang-tidy | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .clang-tidy diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 00000000..7d325679 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,31 @@ +# https://clang.llvm.org/extra/clang-tidy/ +--- +Checks: > + -* + bugprone-*, + cert-*, + clang-analyzer-*, + clang-diagnostic-*, + cppcoreguidelines-*, + google-*, + misc-*, + modernize-*, + performance-*, + portability-*, + readability-*, + -bugprone-easily-swappable-parameters, + -bugprone-reserved-identifier, + -cppcoreguidelines-owning-memory, + -google-default-arguments + -misc-non-private-member-variables-in-classes, + -modernize-avoid-c-arrays, + -modernize-use-auto, + -modernize-use-nodiscard, + -modernize-use-trailing-return-type, + -readability-magic-numbers, + -readability-function-cognitive-complexity, +CheckOptions: + - key: modernize-loop-convert.MinConfidence + value: reasonable +... + From 739a548ee5ad6c03d76b535d94d9e660a1502b82 Mon Sep 17 00:00:00 2001 From: shenleban tongying Date: Sun, 25 Dec 2022 04:41:00 -0500 Subject: [PATCH 2/2] dev: add .clang-tidy --- .clang-tidy | 1 + 1 file changed, 1 insertion(+) diff --git a/.clang-tidy b/.clang-tidy index 7d325679..c9846874 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -18,6 +18,7 @@ Checks: > -cppcoreguidelines-owning-memory, -google-default-arguments -misc-non-private-member-variables-in-classes, + -misc-const-correctness, -modernize-avoid-c-arrays, -modernize-use-auto, -modernize-use-nodiscard,