Skip to content

Commit

Permalink
Implement the Google variable naming style more faithfully.
Browse files Browse the repository at this point in the history
  • Loading branch information
fruffy committed May 14, 2024
1 parent b4d8e06 commit b8d1f1d
Showing 1 changed file with 27 additions and 10 deletions.
37 changes: 27 additions & 10 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ hicpp-*,
misc-*,
llvm-*,
google-*,
abseil-*,
-modernize-use-trailing-return-type,
-misc-confusable-identifiers,
-readability-identifier-length,
Expand All @@ -24,14 +25,30 @@ WarningsAsErrors: ''
HeaderFilterRegex: ''
UseColor: true
CheckOptions:
- { key: misc-const-correctness.AnalyzeValues, value: false }
- { key: readability-identifier-naming.NamespaceCase, value: CamelCase }
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
- { key: readability-identifier-naming.StructCase, value: CamelCase }
- { key: readability-identifier-naming.FunctionCase, value: camelBack }
- { key: readability-identifier-naming.VariableCase, value: camelBack }
- { key: readability-identifier-naming.GlobalConstantCase, value: UPPER_CASE }
- { key: readability-identifier-naming.StaticConstantCase, value: UPPER_CASE }
- { key: readability-identifier-naming.StaticVariableCase, value: UPPER_CASE }
- { key: cppcoreguidelines-avoid-do-while.IgnoreMacros, value: true }
- { key: readability-identifier-naming.StaticVariableCase, value: UPPER_CASE }
- { key: readability-identifier-naming.StaticConstantCase, value: UPPER_CASE }
- { key: readability-identifier-naming.StaticConstantPrefix, value: K_ }
- { key: readability-identifier-naming.GlobalConstantCase, value: UPPER_CASE }
- { key: readability-identifier-naming.GlobalConstantPrefix, value: K_ }
- { key: readability-identifier-naming.NamespaceCase, value: CamelCase }
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
- { key: readability-identifier-naming.StructCase, value: CamelCase }
- { key: readability-identifier-naming.TemplateParameterCase, value: CamelCase }
- { key: readability-identifier-naming.FunctionCase, value: camelCase }
- { key: readability-identifier-naming.VariableCase, value: camelCase }
- { key: readability-identifier-naming.ClassMemberCase, value: camelCase }
- { key: readability-identifier-naming.PrivateMemberCase, value: camelCase }
- { key: readability-identifier-naming.ProtectedMemberCase, value: camelCase }
- { key: readability-identifier-naming.PrivateMemberPrefix, value: _ }
- { key: readability-identifier-naming.ProtectedMemberPrefix, value: _ }
- { key: readability-identifier-naming.EnumConstantCase, value: camelCase }
- { key: readability-identifier-naming.EnumConstantPrefix, value: k }
- { key: readability-identifier-naming.ConstexprVariableCase, value: camelCase }
- { key: readability-identifier-naming.ConstexprVariablePrefix, value: k }
- { key: readability-identifier-naming.MemberConstantCase, value: camelCase }
- { key: readability-identifier-naming.MemberConstantPrefix, value: k }
- { key: readability-function-cognitive-complexity.IgnoreMacros, value: true }
- { key: cppcoreguidelines-avoid-do-while.IgnoreMacros, value: true }
- { key: misc-const-correctness.AnalyzeValues, value: false }

...

0 comments on commit b8d1f1d

Please sign in to comment.