.clang-tidy 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # refer to https://clang.llvm.org/extra/clang-tidy/checks/list.html
  2. #
  3. # Configure clang-tidy for this project.
  4. # Here is an explanation for why some of the checks are disabled:
  5. #
  6. Checks: >
  7. -*,
  8. bugprone-*,
  9. cert-*,
  10. clang-analyzer-*,
  11. concurrency-*,
  12. misc-*,
  13. modernize-*,
  14. performance-*,
  15. portability-*,
  16. readability-*,
  17. -bugprone-easily-swappable-parameters,
  18. -bugprone-macro-parentheses,
  19. -misc-no-recursion,
  20. -misc-unused-parameters,
  21. -readability-braces-around-statements,
  22. -readability-else-after-return,
  23. -readability-function-cognitive-complexity,
  24. -readability-identifier-length,
  25. -readability-isolate-declaration,
  26. -readability-magic-numbers,
  27. -readability-named-parameter,
  28. -readability-non-const-parameter,
  29. -readability-redundant-preprocessor,
  30. -readability-suspicious-call-argument,
  31. -readability-uppercase-literal-suffix
  32. # Turn all the warnings from the checks above into errors.
  33. WarningsAsErrors: "*"
  34. # headers in the following directories will be checked:
  35. # - core/iwasm/
  36. # - core/shared/
  37. HeaderFilterRegex: '(core/iwasm/|core/shared/).*\\.h$'
  38. # goto .clang-format at root directory to see the format style
  39. FormatStyle: file
  40. CheckOptions:
  41. - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
  42. - { key: readability-function-cognitive-complexity.Threshold, value: 100 }