1
0

.clang-tidy 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # https://clang.llvm.org/extra/clang-tidy/checks/list.html
  2. # gtest's TEST & TEST_F trigger
  3. # - cppcoreguidelines-owning-memory (TEST_F only)
  4. # - cppcoreguidelines-special-member-functions
  5. # - modernize-use-equals-delete
  6. # gtest's ASSERT_THROW & ASSERT_NO_THROW trigger
  7. # cppcoreguidelines-avoid-goto
  8. # gtest's ASSERT_EQ triggers
  9. # cppcoreguidelines-pro-type-vararg
  10. # cppcoreguidelines-pro-bounds-array-to-pointer-decay reports:
  11. # lib/HdfFile.cpp:118:33: warning: do not implicitly decay an array into a pointer;
  12. # consider using gsl::array_view or an explicit cast instead
  13. # char nameGroup[MAX_NAME_LENGTH];
  14. # ...
  15. # if (name == std::string(nameGroup)) {
  16. # ^
  17. Checks: >-
  18. bugprone-*,
  19. cppcoreguidelines-*,
  20. -cppcoreguidelines-avoid-goto,
  21. -cppcoreguidelines-owning-memory,
  22. -cppcoreguidelines-pro-bounds-array-to-pointer-decay,
  23. -cppcoreguidelines-pro-type-vararg,
  24. -cppcoreguidelines-special-member-functions,
  25. misc-*,
  26. modernize-*,
  27. -modernize-use-equals-delete,
  28. performance-*,
  29. readability-*,
  30. # TODO fix remaining warnings in this list
  31. WarningsAsErrors: >-
  32. *,
  33. -clang-diagnostic-return-type,
  34. -cppcoreguidelines-pro-bounds-pointer-arithmetic,