diff --git a/.clang-tidy b/.clang-tidy index 75a13173c3b4..4e3942ba3677 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -7,7 +7,8 @@ Checks: >- modernize-use-override, readability-braces-around-statements, readability-non-const-parameter, - readability-qualified-auto + readability-qualified-auto, + readability-identifier-naming WarningsAsErrors: "" HeaderFilterRegex: "" FormatStyle: none @@ -23,3 +24,21 @@ CheckOptions: value: true - key: modernize-use-nullptr.NullMacros value: "NULL" + - key: readability-identifier-naming.ClassCase + value: CamelCase + - key: readability-identifier-naming.ClassConstantPrefix + value: k + - key: readability-identifier-naming.ClassMemberCase + value: m_ + - key: readability-identifier-naming.ConstexprVariableCase + value: k # constexpr implies const and (likely) known at compile-time and thus k by our rules + - key: readability-identifier-naming.GlobalConstantPrefix + value: k + - key: readability-identifier-naming.LocalPointerPrefix + value: p + - key: readability-identifier-naming.PointerParameterPrefix + value: p + - key: readability-identifier-naming.ScopedEnumConstantCase + value: CamelCase + - key: readability-identifier-naming.StaticConstantCase + value: k