From 2351531e842a63e303fb0f4db11fd8a9dee295d9 Mon Sep 17 00:00:00 2001 From: QazCetelic Date: Sat, 23 Nov 2024 18:15:07 +0100 Subject: [PATCH] Add naming checks to clang-tidy Signed-off-by: QazCetelic --- .clang-tidy | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 436dcf244..9ca89c10f 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,5 +1,23 @@ -Checks: - - modernize-use-using - - readability-avoid-const-params-in-decls +Checks: > + modernize-use-using + readability-avoid-const-params-in-decls + misc-unused-parameters, + readability-identifier-naming -SystemHeaders: false +# ^ Without unused-parameters the readability-identifier-naming check doesn't cause any warnings. + +CheckOptions: + - { key: readability-identifier-naming.ClassCase, value: PascalCase } + - { key: readability-identifier-naming.EnumCase, value: PascalCase } + - { key: readability-identifier-naming.FunctionCase, value: camelCase } + - { key: readability-identifier-naming.GlobalVariableCase, value: camelCase } + - { key: readability-identifier-naming.GlobalFunctionCase, value: camelCase } + - { key: readability-identifier-naming.GlobalConstantCase, value: SCREAMING_SNAKE_CASE } + - { key: readability-identifier-naming.MacroDefinitionCase, value: SCREAMING_SNAKE_CASE } + - { key: readability-identifier-naming.ClassMemberCase, value: camelCase } + - { key: readability-identifier-naming.PrivateMemberPrefix, value: m_ } + - { key: readability-identifier-naming.ProtectedMemberPrefix, value: m_ } + - { key: readability-identifier-naming.PrivateStaticMemberPrefix, value: s_ } + - { key: readability-identifier-naming.ProtectedStaticMemberPrefix, value: s_ } + - { key: readability-identifier-naming.PublicStaticConstantCase, value: SCREAMING_SNAKE_CASE } + - { key: readability-identifier-naming.EnumConstantCase, value: SCREAMING_SNAKE_CASE } \ No newline at end of file