From 0b1aa00cb96be048a659150b433faac53aa1d759 Mon Sep 17 00:00:00 2001 From: Zehua Zou <41586196+HuaHuaY@users.noreply.github.com> Date: Tue, 11 Nov 2025 16:36:11 +0800 Subject: [PATCH] feat: clang-tidy checks private and protected member suffix --- .clang-tidy | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.clang-tidy b/.clang-tidy index cca8dfef5..883962125 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -21,6 +21,7 @@ Checks: | clang-analyzer-*, google-*, modernize-*, + readability-identifier-naming, -modernize-use-nodiscard, -modernize-use-trailing-return-type, @@ -33,5 +34,9 @@ CheckOptions: value: '10' - key: google-readability-namespace-comments.SpacesBeforeComments value: '2' + - key: readability-identifier-naming.PrivateMemberSuffix + value: '_' + - key: readability-identifier-naming.ProtectedMemberSuffix + value: '_' -HeaderFilterRegex: '(src|test|example)' +HeaderFilterRegex: '(?!_deps)(src|test|example)'