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