Skip to content

Commit abf1c1d

Browse files
authored
feat: clang-tidy checks private and protected member suffix (#309)
1 parent bb02a15 commit abf1c1d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.clang-tidy

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Checks: |
2121
clang-analyzer-*,
2222
google-*,
2323
modernize-*,
24+
readability-identifier-naming,
2425
-modernize-use-nodiscard,
2526
-modernize-use-trailing-return-type,
2627
@@ -33,5 +34,9 @@ CheckOptions:
3334
value: '10'
3435
- key: google-readability-namespace-comments.SpacesBeforeComments
3536
value: '2'
37+
- key: readability-identifier-naming.PrivateMemberSuffix
38+
value: '_'
39+
- key: readability-identifier-naming.ProtectedMemberSuffix
40+
value: '_'
3641

37-
HeaderFilterRegex: '(src|test|example)'
42+
HeaderFilterRegex: '(?!_deps)(src|test|example)'

0 commit comments

Comments
 (0)