.clang-tidy 1.5 KB

12345678910111213141516171819202122232425262728
  1. # Don't use the C++ new,delete check since it doesn't work with Qt.
  2. # Enable a bunch of modernization checks
  3. Checks: 'clang-analyzer-alpha.*,-clang-analyzer-alpha.deadcode.UnreachableCode,-clang-analyzer-core.CallAndMessage,-clang-analyzer-cplusplus.NewDeleteLeaks,misc-forward-declaration-namespace,modernize-use-auto,modernize-use-nullptr,modernize-redudant-void-arg,readability-inconsistent-declaration-parameter-name,readability-simplify-boolean-expr,readability-container-size-empty,performance-for-range-copy,readability-identifier-naming,modernize-use-override,google-explicit-constructor'
  4. CheckOptions:
  5. - key: readability-identifier-naming.ClassCase
  6. value: CamelCase
  7. - key: readability-identifier-naming.EnumCase
  8. value: CamelCase
  9. - key: readability-identifier-naming.FunctionCase
  10. value: lowerCase
  11. - key: readability-identifier-naming.GlobalFunction
  12. value: CamelCase
  13. - key: readability-identifier-naming.GlobalVarableCase
  14. value: camelBack
  15. - key: readability-identifier-naming.GlobalVariablePrefix
  16. value: g_
  17. - key: readability-identifier-naming.VariableCase
  18. value: camelBack
  19. - key: readability-identifier-naming.PrivateMemberPrefix
  20. value: m_
  21. - key: readability-identifier-naming.ProtectedMemberPrefix
  22. value: m_
  23. - key: readability-identifier-naming.MemberCase
  24. value: camelBack
  25. - key: readability-identifier-naming.Method
  26. value: camelBack
  27. - key: readability-identifier-naming.ClassMethod
  28. value: CamelCase