Skip to content

Commit

Permalink
feat: use clang-tidy lint readability-identifier-naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftb0y committed Sep 9, 2024
1 parent 8790b5f commit 68d8d42
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 68d8d42

Please sign in to comment.