From 10767d5e0a21cc4a1d1f3317b6080d5ff3a858ea Mon Sep 17 00:00:00 2001 From: Avamander Date: Sat, 30 Jan 2021 23:55:35 +0200 Subject: [PATCH 1/2] Added clang-tidy configuration --- .clang-tidy | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .clang-tidy diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 00000000..051f50f1 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,27 @@ +Checks: '*, + -llvmlibc-callee-namespace, + -llvm-header-guard, + -llvm-namespace-comment, + -google-build-using-namespace, + -google-runtime-int, + -google-readability-namespace-comments, + -fuchsia-statically-constructed-objects, + -cppcoreguidelines-pro-bounds-array-to-pointer-decay, + -cppcoreguidelines-pro-bounds-constant-array-index, + -cppcoreguidelines-pro-type-union-access, + -cppcoreguidelines-pro-type-cstyle-cast, + -cppcoreguidelines-pro-type-vararg, + -cppcoreguidelines-avoid-magic-numbers, + -cppcoreguidelines-avoid-non-const-global-variables, + -cppcoreguidelines-avoid-c-arrays, + -readability-magic-numbers, + -readability-uppercase-literal-suffix, + -misc-use-after-move, + -modernize-use-trailing-return-type, + -modernize-avoid-c-arrays, + -hicpp-signed-bitwise, + -hicpp-no-assembler, + -hicpp-avoid-c-arrays, + -hicpp-uppercase-literal-suffix, + -cert-err58-cpp, + -cert-err60-cpp' \ No newline at end of file From a9e79468d0627080bc667415ed13a22df7a0e48e Mon Sep 17 00:00:00 2001 From: Avamander Date: Sun, 31 Jan 2021 00:05:23 +0200 Subject: [PATCH 2/2] Re-enabled use-after-move warning --- .clang-tidy | 1 - 1 file changed, 1 deletion(-) diff --git a/.clang-tidy b/.clang-tidy index 051f50f1..d6036802 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -16,7 +16,6 @@ Checks: '*, -cppcoreguidelines-avoid-c-arrays, -readability-magic-numbers, -readability-uppercase-literal-suffix, - -misc-use-after-move, -modernize-use-trailing-return-type, -modernize-avoid-c-arrays, -hicpp-signed-bitwise,