.clang-tidy 2.9 KB

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