From 080eeace70eb64d3336fb0642b011aa35aeebb7c Mon Sep 17 00:00:00 2001 From: Egor Zhdan Date: Thu, 3 Aug 2023 13:47:29 +0100 Subject: [PATCH] NFC: Add clang-tidy config file This makes sure that folks who use clang-tidy see consistent code analysis reports. This is especially helpful for those using IDEs with clang-tidy integration. The config file is based on the LLVM `.clang-tidy` file: https://github.com/llvm/llvm-project/blob/main/.clang-tidy --- .clang-tidy | 14 ++++++++++++++ .github/CODEOWNERS | 3 +++ 2 files changed, 17 insertions(+) create mode 100644 .clang-tidy diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 00000000000..7825bd872ce --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,14 @@ +# See https://clang.llvm.org/extra/clang-tidy/checks/list.html + +Checks: ' +-*, +llvm-*, +misc-*, +-misc-const-correctness, +-misc-unused-parameters, +-misc-non-private-member-variables-in-classes, +-misc-no-recursion, +-misc-use-anonymous-namespace, +-readability-qualified-auto, +-llvm-qualified-auto +' diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8541f53f7c2..35a98896439 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -7,6 +7,9 @@ # order. # TODO: /.clang-format + +/.clang-tidy @egorzhdan + # TODO: /.dir-locals.el # TODO: /.flake8 # TODO: /.gitattributes