From 59ecbb5ab7f85b4ede829b12cc4145dc2876a9f2 Mon Sep 17 00:00:00 2001 From: Lars Toenning Date: Sun, 24 Mar 2024 21:26:57 +0100 Subject: [PATCH] refactor: Add clang-tidy project config --- .clang-tidy | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .clang-tidy diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 000000000..8013242b7 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,26 @@ +# SPDX-FileCopyrightText: Copyright (C) swift Project Community / Contributors +# SPDX-License-Identifier: CC0-1.0 + +Checks: + - '-*' + - 'modernize-*' + - '-modernize-use-trailing-return-type' + - '-modernize-use-nodiscard' + - '-modernize-pass-by-value' + - 'bugprone-*' + - 'readability-*' + - '-readability-identifier-length' + - '-readability-braces-around-statements' + - 'cppcoreguidelines-*' + +CheckOptions: + - key: readability-identifier-naming.ClassCase + value: 'CamelCase' + - key: readability-identifier-naming.MethodCase + value: 'camelBack' + - key: readability-identifier-naming.MemberCase + value: 'camelBack' + - key: readability-identifier-naming.MemberPrefix + value: 'm_' + - key: readability-implicit-bool-conversion.AllowPointerConditions + value: true