.clang-tidy 1.4 KB

1234567891011121314151617181920212223242526
  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.MemberPrefix
  20. value: m_
  21. - key: readability-identifier-naming.MemberCase
  22. value: camelBack
  23. - key: readability-identifier-naming.Method
  24. value: camelBack
  25. - key: readability-identifier-naming.ClassMethod
  26. value: CamelCase