.clang-tidy 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. ---
  2. Checks: >
  3. -*,
  4. bugprone-*,
  5. cert-*,
  6. clang-analyzer-*,
  7. cppcoreguidelines-*,
  8. google-*,
  9. hicpp-*,
  10. misc-*,
  11. modernize-*,
  12. performance-*,
  13. portability-*,
  14. readability-*,
  15. -bugprone-easily-swappable-parameters,
  16. -cppcoreguidelines-avoid-magic-numbers,
  17. -cppcoreguidelines-pro-bounds-array-to-pointer-decay,
  18. -cppcoreguidelines-pro-bounds-constant-array-index,
  19. -cppcoreguidelines-pro-bounds-pointer-arithmetic,
  20. -cppcoreguidelines-pro-type-reinterpret-cast,
  21. -google-readability-todo,
  22. -hicpp-no-array-decay,
  23. -misc-non-private-member-variables-in-classes,
  24. -modernize-use-trailing-return-type,
  25. -readability-magic-numbers,
  26. -readability-identifier-length
  27. WarningsAsErrors: ''
  28. HeaderFilterRegex: '.*'
  29. CheckOptions:
  30. - key: readability-identifier-naming.ClassCase
  31. value: CamelCase
  32. - key: readability-identifier-naming.ClassMemberCase
  33. value: lower_case
  34. - key: readability-identifier-naming.ClassMemberSuffix
  35. value: '_'
  36. - key: readability-identifier-naming.ConstantCase
  37. value: UPPER_CASE
  38. - key: readability-identifier-naming.ConstexprVariableCase
  39. value: CamelCase
  40. - key: readability-identifier-naming.ConstexprVariablePrefix
  41. value: k
  42. - key: readability-identifier-naming.EnumCase
  43. value: CamelCase
  44. - key: readability-identifier-naming.EnumConstantCase
  45. value: CamelCase
  46. - key: readability-identifier-naming.EnumConstantPrefix
  47. value: k
  48. - key: readability-identifier-naming.FunctionCase
  49. value: CamelCase
  50. - key: readability-identifier-naming.GlobalConstantCase
  51. value: CamelCase
  52. - key: readability-identifier-naming.GlobalConstantPrefix
  53. value: k
  54. - key: readability-identifier-naming.LocalConstantCase
  55. value: CamelCase
  56. - key: readability-identifier-naming.LocalConstantPrefix
  57. value: k
  58. - key: readability-identifier-naming.LocalVariableCase
  59. value: lower_case
  60. - key: readability-identifier-naming.MacroDefinitionCase
  61. value: UPPER_CASE
  62. - key: readability-identifier-naming.MemberCase
  63. value: lower_case
  64. - key: readability-identifier-naming.MethodCase
  65. value: CamelCase
  66. - key: readability-identifier-naming.NamespaceCase
  67. value: lower_case
  68. - key: readability-identifier-naming.ParameterCase
  69. value: lower_case
  70. - key: readability-identifier-naming.PrivateMemberSuffix
  71. value: '_'
  72. - key: readability-identifier-naming.ProtectedMemberSuffix
  73. value: '_'
  74. - key: readability-identifier-naming.PublicMemberCase
  75. value: lower_case
  76. - key: readability-identifier-naming.StaticConstantCase
  77. value: CamelCase
  78. - key: readability-identifier-naming.StaticConstantPrefix
  79. value: k
  80. - key: readability-identifier-naming.StaticVariableCase
  81. value: lower_case
  82. - key: readability-identifier-naming.StructCase
  83. value: CamelCase
  84. - key: readability-identifier-naming.TemplateParameterCase
  85. value: CamelCase
  86. - key: readability-identifier-naming.TypedefCase
  87. value: CamelCase
  88. - key: readability-identifier-naming.UnionCase
  89. value: CamelCase
  90. - key: readability-identifier-naming.VariableCase
  91. value: lower_case
  92. - key: readability-function-cognitive-complexity.Threshold
  93. value: 25
  94. - key: modernize-loop-convert.MinConfidence
  95. value: reasonable
  96. - key: modernize-replace-auto-ptr.IncludeStyle
  97. value: llvm
  98. - key: modernize-pass-by-value.IncludeStyle
  99. value: llvm
  100. - key: performance-move-const-arg.CheckTriviallyCopyableMove
  101. value: false
  102. - key: cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor
  103. value: true
  104. - key: hicpp-special-member-functions.AllowSoleDefaultDtor
  105. value: true
  106. ...