From 37b54c5c0e8f5d6263fea14590a2a3d36f52b8b6 Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Sat, 2 Nov 2024 22:46:45 +0000 Subject: [PATCH] feat: Add a .clang-tidy --- .clang-tidy | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .clang-tidy diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..eb29a5a --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,60 @@ +Checks: '*, -google-*, -objc-*, -llvmlibc-*, -zircon-*, +-altera-*, +-hicpp-braces-around-statements, +-hicpp-named-parameter, +-hicpp-use-auto, +-hicpp-avoid-c-arrays,modernize-avoid-c-arrays, +-hicpp-no-array-decay, +-hicpp-signed-bitwise, +-hicpp-use-equals-default, +-hicpp-use-emplace, +-hicpp-special-member-functions, +-readability-braces-around-statements, +-readability-identifier-length, +-readability-implicit-bool-conversion, +-readability-named-parameter, +-readability-qualified-auto, +-readability-magic-numbers, +-readability-convert-member-functions-to-static, +-readability-function-cognitive-complexity, +-readability-use-anyofallof, +-readability-misleading-indentation, +-readability-make-member-function-const, +-modernize-use-trailing-return-type, +-modernize-use-auto, +-modernize-use-nodiscard, +-modernize-return-braced-init-list, +-modernize-macro-to-enum, +-modernize-use-using, +-modernize-use-emplace, +-modernize-use-equals-default, +-modernize-avoid-c-arrays, +-llvm-namespace-comment, +-llvm-qualified-auto, +-llvm-include-order, +-llvm-else-after-return, +-fuchsia-*, +-readability-inconsistent-declaration-parameter-name, +-readability-else-after-return, +-misc-const-correctness, +-misc-non-private-member-variables-in-classes, +-misc-no-recursion, +-misc-use-anonymous-namespace, +-misc-include-cleaner, +-cppcoreguidelines-pro-type-const-cast, +-cppcoreguidelines-macro-usage, +-cppcoreguidelines-owning-memory, +-cppcoreguidelines-avoid-magic-numbers, +-cppcoreguidelines-avoid-non-const-global-variables, +-cppcoreguidelines-avoid-c-arrays, +-cppcoreguidelines-pro-bounds-array-to-pointer-decay, +-cppcoreguidelines-pro-type-static-cast-downcast, +-cppcoreguidelines-avoid-const-or-ref-data-members, +-cppcoreguidelines-special-member-functions, +-performance-unnecessary-value-param, +-clang-analyzer-cplusplus.NewDelete, +-clang-analyzer-cplusplus.NewDeleteLeaks, +-cert-err58-cpp, +-bugprone-suspicious-include, +-bugprone-branch-clone +'