.clang-tidy 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. ---
  2. Checks: >
  3. bugprone-*,
  4. -bugprone-std-namespace-modification,
  5. -bugprone-exception-escape,
  6. -bugprone-macro-parentheses,
  7. -bugprone-crtp-constructor-accessibility,
  8. clang-diagnostic-*,
  9. -clang-diagnostic-pragma-once-outside-header,
  10. cppcoreguidelines-*,
  11. -cppcoreguidelines-macro-usage,
  12. -cppcoreguidelines-c-copy-assignment-signature,
  13. -cppcoreguidelines-avoid-const-or-ref-data-members,
  14. -cppcoreguidelines-use-enum-class,
  15. -cppcoreguidelines-pro-type-member-init,
  16. -cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,
  17. google-*,
  18. -google-readability-namespace-comments,
  19. llvm-*,
  20. -llvm-header-guard,
  21. -llvm-namespace-comment,
  22. -llvm-else-after-return,
  23. -llvm-prefer-static-over-anonymous-namespace,
  24. misc-*,
  25. -misc-no-recursion,
  26. modernize-*,
  27. -modernize-use-trailing-return-type,
  28. -modernize-use-nodiscard,
  29. performance-*,
  30. readability-*,
  31. -readability-named-parameter,
  32. -readability-redundant-access-specifiers,
  33. -readability-use-concise-preprocessor-directives,
  34. -readability-magic-numbers,
  35. WarningsAsErrors: ''
  36. HeaderFileExtensions:
  37. - ''
  38. - h
  39. - hh
  40. - hpp
  41. - hxx
  42. ImplementationFileExtensions:
  43. - c
  44. - cc
  45. - cpp
  46. - cxx
  47. - tpp
  48. HeaderFilterRegex: '.*'
  49. ExcludeHeaderFilterRegex: ''
  50. FormatStyle: none
  51. User: samjaffe
  52. SystemHeaders: false
  53. CheckOptions:
  54. - key: cppcoreguidelines-avoid-do-while.IgnoreMacros
  55. value: true
  56. - key: cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor
  57. value: true
  58. - key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
  59. value: true
  60. - key: readability-identifier-naming.NamespaceCase
  61. value: lower_case
  62. - key: readability-identifier-naming.ClassCase
  63. value: CamelCase
  64. - key: readability-identifier-naming.StructCase
  65. value: CamelCase
  66. - key: readability-identifier-naming.PrivateMemberSuffix
  67. value: _
  68. - key: readability-identifier-naming.FunctionCase
  69. value: lower_case
  70. - key: readability-identifier-naming.VariableCase
  71. value: lower_case
  72. - key: readability-identifier-naming.ClassConstexprCase
  73. value: lower_case
  74. - key: readability-identifier-naming.ClassConstantCase
  75. value: lower_case
  76. - key: readability-identifier-naming.GlobalConstantCase
  77. value: UPPER_CASE
  78. - key: readability-identifier-length.IgnoredVariableNames
  79. value: "^(_|it|in|ss|[kv])$"
  80. - key: readability-identifier-length.IgnoredParameterNames
  81. value: "^(os|in|it)$"
  82. - key: readability-identifier-length.IgnoredLoopCounterNames
  83. value: "^[kvijk_]$"
  84. - key: readability-implicit-bool-conversion.AllowPointerConditions
  85. value: true
  86. - key: readability-implicit-bool-conversion.AllowLogicalOperatorConversion
  87. value: true
  88. - key: readability-function-cognitive-complexity.IgnoreMacros
  89. value: true
  90. ...