From 249ef8dc8a47a40a2b28156136d3e131caf71183 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 15 Jun 2026 09:50:50 +0200 Subject: build: configure naming rule checks --- .clang-tidy | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to '.clang-tidy') diff --git a/.clang-tidy b/.clang-tidy index dc76491..f4b0b7b 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -41,6 +41,7 @@ Checks: - misc-redundant-expression - misc-static-assert - misc-unused-using-decls + - modernize-avoid-c-arrays - modernize-loop-convert - modernize-use-auto @@ -52,17 +53,32 @@ Checks: - modernize-use-transparent-functors - modernize-use-using + - readability-identifier-naming - readability-magic-numbers CheckOptions: cppcoreguidelines-avoid-do-while.IgnoreMacros: true + cppcoreguidelines-avoid-non-const-global-variables.AllowInternalLinkage: true + modernize-use-std-print.ReplacementPrintFunction: "kstd::print" modernize-use-std-print.ReplacementPrintlnFunction: "kstd::println" modernize-use-std-print.PrintHeader: "kstd/print" + modernize-use-trailing-return-type.TransformLambdas: none - readability-magic-numbers.IgnoredIntegerValues: "1;2;3;4;5;6;7;10;15;20;25;30;3\ - 5;40;45;50;60;70;80;90;100;200;300;400;255" + + readability-identifier-naming.CheckAnonFieldInParent: true + readability-identifier-naming.ClassCase: lower_case + readability-identifier-naming.ConstantCase: lower_case + readability-identifier-naming.ConstexprVariableCase: lower_case + readability-identifier-naming.EnumCase: lower_case + readability-identifier-naming.FunctionCase: lower_case + readability-identifier-naming.PrivateMemberPrefix: m_ + readability-identifier-naming.TemplateParameterCase: CamelCase + readability-identifier-naming.TypeAliasCase: lower_case + readability-identifier-naming.VariableCase: lower_case + + readability-magic-numbers.IgnoredIntegerValues: "1;2;3;4;5;6;7;10;15;20;25;30;3;5;40;45;50;60;70;80;90;100;200;300;400;255" readability-magic-numbers.IgnorePowersOf2IntegerValues: true readability-magic-numbers.IgnoreBitFieldsWidths: true readability-magic-numbers.IgnoreTypeAliases: true -- cgit v1.2.3