From c3ae3bb2d77349d8da6d8abdda39016a0b2bad63 Mon Sep 17 00:00:00 2001 From: ClausKlein Date: Sun, 24 Jul 2022 21:41:19 +0200 Subject: [PATCH] liberate clang-tidy config file for use at talking-async code too --- asio/.clang-tidy | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/asio/.clang-tidy b/asio/.clang-tidy index f932a80d01..b6fef8689c 100644 --- a/asio/.clang-tidy +++ b/asio/.clang-tidy @@ -3,12 +3,15 @@ # misc-non-private-member-variables-in-classes: the options don't do anything Checks: "*,\ -google-readability-todo,\ + -google-build-using-namespace,\ -altera-unroll-loops,\ -fuchsia-*,\ fuchsia-multiple-inheritance,\ -llvm-header-guard,\ -llvm-include-order,\ -llvmlibc-*,\ + -cppcoreguidelines-pro-bounds-pointer-arithmetic,\ + -*-magic-numbers,\ -misc-non-private-member-variables-in-classes" WarningsAsErrors: '' CheckOptions: @@ -23,6 +26,10 @@ CheckOptions: value: 'true' - key: 'bugprone-suspicious-string-compare.WarnOnLogicalNotComparison' value: 'true' + - key: readability-identifier-length.MinimumParameterNameLength + value: '2' + - key: readability-identifier-length.MinimumVariableNameLength + value: '1' - key: 'readability-simplify-boolean-expr.ChainedConditionalReturn' value: 'true' - key: 'readability-simplify-boolean-expr.ChainedConditionalAssignment' @@ -110,8 +117,10 @@ CheckOptions: value: 'lower_case' - key: 'readability-identifier-naming.PrivateMemberCase' value: 'lower_case' - - key: 'readability-identifier-naming.PrivateMemberPrefix' - value: 'm_' + # - key: 'readability-identifier-naming.PrivateMemberPrefix' + # value: 'm_' + - key: 'readability-identifier-naming.PrivateMemberSuffix' + value: '_' - key: 'readability-identifier-naming.PrivateMethodCase' value: 'lower_case' - key: 'readability-identifier-naming.ProtectedMemberCase'