From 9a9c3042aa63c597751ea8b5754ca7f7e5c9c882 Mon Sep 17 00:00:00 2001 From: Sean Robinson Date: Wed, 10 Nov 2021 13:54:27 -0700 Subject: [PATCH] Add a clang-tidy configuration file This file matches the current practices of the argparse project. Signed-off-by: Sean Robinson --- .clang-tidy | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .clang-tidy diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..56d7f64 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,24 @@ +Checks: + -*, + readability-*, + -readability-braces-around-statements, + -readability-container-size-empty, + -readability-else-after-return, + -readability-implicit-bool-conversion, + -readability-function-cognitive-complexity, + -readability-magic-numbers, + -readability-named-parameter, + -readability-qualified-auto, + -readability-static-accessed-through-instance, + +CheckOptions: + - { key: readability-identifier-naming.ClassCase, value: CamelCase } + - { key: readability-identifier-naming.ConstexprVariableCase, value: lower_case } + - { key: readability-identifier-naming.FunctionCase, value: lower_case } + - { key: readability-identifier-naming.LocalVariableIgnoredRegexp, value: "^[a-z][a-z_]+" } + - { key: readability-identifier-naming.NamespaceCase, value: lower_case } + - { key: readability-identifier-naming.PrivateMemberPrefix, value: m } + - { key: readability-identifier-naming.StructCase, value: lower_case } + - { key: readability-identifier-naming.VariableCase, value: camelBack } + +HeaderFilterRegex: '.*'