.clang-tidy 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. Checks: '*,
  2. -altera-id-dependent-backward-branch,
  3. -altera-struct-pack-align,
  4. -altera-unroll-loops,
  5. -android-cloexec-fopen,
  6. -bugprone-easily-swappable-parameters,
  7. -cert-err58-cpp,
  8. -concurrency-mt-unsafe,
  9. -cppcoreguidelines-avoid-const-or-ref-data-members,
  10. -cppcoreguidelines-avoid-do-while,
  11. -cppcoreguidelines-avoid-goto,
  12. -cppcoreguidelines-avoid-magic-numbers,
  13. -cppcoreguidelines-avoid-non-const-global-variables,
  14. -cppcoreguidelines-macro-usage,
  15. -cppcoreguidelines-pro-bounds-array-to-pointer-decay,
  16. -cppcoreguidelines-pro-bounds-constant-array-index,
  17. -cppcoreguidelines-pro-bounds-pointer-arithmetic,
  18. -cppcoreguidelines-pro-type-reinterpret-cast,
  19. -cppcoreguidelines-pro-type-union-access,
  20. -cppcoreguidelines-virtual-class-destructor,
  21. -fuchsia-default-arguments-calls,
  22. -fuchsia-default-arguments-declarations,
  23. -fuchsia-overloaded-operator,
  24. -google-explicit-constructor,
  25. -google-readability-function-size,
  26. -google-runtime-int,
  27. -google-runtime-references,
  28. -hicpp-avoid-goto,
  29. -hicpp-explicit-conversions,
  30. -hicpp-function-size,
  31. -hicpp-no-array-decay,
  32. -hicpp-no-assembler,
  33. -hicpp-signed-bitwise,
  34. -hicpp-uppercase-literal-suffix,
  35. -llvm-header-guard,
  36. -llvm-include-order,
  37. -llvmlibc-*,
  38. -misc-confusable-identifiers,
  39. -misc-no-recursion,
  40. -misc-non-private-member-variables-in-classes,
  41. -modernize-concat-nested-namespaces,
  42. -modernize-use-nodiscard,
  43. -modernize-use-trailing-return-type,
  44. -readability-function-cognitive-complexity,
  45. -readability-function-size,
  46. -readability-identifier-length,
  47. -readability-magic-numbers,
  48. -readability-redundant-access-specifiers,
  49. -readability-simplify-boolean-expr,
  50. -readability-uppercase-literal-suffix'
  51. CheckOptions:
  52. - key: hicpp-special-member-functions.AllowSoleDefaultDtor
  53. value: 1
  54. WarningsAsErrors: '*'
  55. #HeaderFilterRegex: '.*nlohmann.*'
  56. HeaderFilterRegex: '.*hpp$'