.clang-tidy 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. ---
  2. # cert-*
  3. # -cert-dcl50-cpp
  4. # We use variadic functions
  5. # -cert-err58-cpp
  6. # GoogleTest creates instances in static scope in a way that trips this
  7. # warning for every test.
  8. # readability-*
  9. # -readability-else-after-return
  10. # -readability-implicit-bool-conversion
  11. # These checks generate a bunch of noise that we're just not religious
  12. # about.
  13. # modernize-*
  14. # -modernize-use-equals-default
  15. # VS 2015 and Xcode <= 8.2 don't fully support this so we don't use
  16. # `= default`.
  17. # -modernize-use-equals-delete
  18. # GoogleTest generates test classes that use the old idiom of making
  19. # default constructors and operator= private.
  20. Checks: 'bugprone-*,cert-*,-cert-dcl50-cpp,-cert-err58-cpp,google-*,objc-*,readability-*,-readability-else-after-return,-readability-implicit-bool-conversion,misc-*,modernize-*,-modernize-use-equals-default,-modernize-use-equals-delete,-modernize-use-trailing-return-type,clang-diagnostic-*,clang-analyzer-*'
  21. WarningsAsErrors: ''
  22. HeaderFilterRegex: ''
  23. CheckOptions:
  24. - key: readability-braces-around-statements.ShortStatementLines
  25. value: '1'
  26. - key: google-readability-braces-around-statements.ShortStatementLines
  27. value: '1'
  28. - key: google-readability-function-size.StatementThreshold
  29. value: '800'
  30. - key: google-readability-namespace-comments.ShortNamespaceLines
  31. value: '10'
  32. - key: google-readability-namespace-comments.SpacesBeforeComments
  33. value: '2'
  34. ...