.clang-tidy 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. FormatStyle: file
  2. Checks: '
  3. cppcoreguidelines-init-variables,
  4. clang-analyzer-optin.cplusplus.VirtualCall,
  5. llvm-namespace-comment,
  6. misc-misplaced-const,
  7. misc-non-copyable-objects,
  8. misc-static-assert,
  9. misc-throw-by-value-catch-by-reference,
  10. misc-uniqueptr-reset-release,
  11. misc-unused-parameters,
  12. modernize-avoid-bind,
  13. modernize-make-shared,
  14. modernize-redundant-void-arg,
  15. modernize-replace-auto-ptr,
  16. modernize-replace-disallow-copy-and-assign-macro,
  17. modernize-replace-random-shuffle,
  18. modernize-shrink-to-fit,
  19. modernize-use-auto,
  20. modernize-use-bool-literals,
  21. modernize-use-equals-default,
  22. modernize-use-equals-delete,
  23. modernize-use-default-member-init,
  24. modernize-use-noexcept,
  25. modernize-use-emplace,
  26. modernize-use-override,
  27. modernize-use-using,
  28. *performance*,
  29. readability-avoid-const-params-in-decls,
  30. readability-container-size-empty,
  31. readability-else-after-return,
  32. readability-delete-null-pointer,
  33. readability-implicit-bool-conversion,
  34. readability-make-member-function-const,
  35. readability-misplaced-array-index,
  36. readability-non-const-parameter,
  37. readability-redundant-function-ptr-dereference,
  38. readability-redundant-smartptr-get,
  39. readability-redundant-string-cstr,
  40. readability-simplify-subscript-expr,
  41. readability-static-accessed-through-instance,
  42. readability-static-definition-in-anonymous-namespace,
  43. readability-string-compare,
  44. readability-uniqueptr-delete-release,
  45. '
  46. CheckOptions:
  47. - key: performance-for-range-copy.WarnOnAllAutoCopies
  48. value: true
  49. - key: performance-unnecessary-value-param.AllowedTypes
  50. value: 'exception_ptr$;'
  51. - key: readability-implicit-bool-conversion.AllowPointerConditions
  52. value: true
  53. HeaderFilterRegex: 'pybind11/.*h'
  54. WarningsAsErrors: '*'