| 1 |
--- |
| 2 |
# Note: Alas, `Checks` is a string, not an array. |
| 3 |
# Comments in the block string are not parsed and are passed in the value. |
| 4 |
# They must thus be delimited by ',' from either side - then they are |
| 5 |
# harmless. It's terrible, but it works. |
| 6 |
Checks: >- |
| 7 |
clang-diagnostic-*, |
| 8 |
clang-analyzer-*, |
| 9 |
-clang-analyzer-optin.core.EnumCastOutOfRange, |
| 10 |
|
| 11 |
bugprone-*, |
| 12 |
-bugprone-unchecked-optional-access, |
| 13 |
,# This is ridiculous, as it triggers on constants, |
| 14 |
-bugprone-implicit-widening-of-multiplication-result, |
| 15 |
-bugprone-easily-swappable-parameters, |
| 16 |
,# Is not really useful, has false positives, triggers for no-noexcept move constructors ..., |
| 17 |
-bugprone-exception-escape, |
| 18 |
-bugprone-narrowing-conversions, |
| 19 |
-bugprone-chained-comparison,# RIP decomposers, |
| 20 |
|
| 21 |
modernize-*, |
| 22 |
-modernize-avoid-c-arrays, |
| 23 |
-modernize-use-auto, |
| 24 |
-modernize-use-emplace, |
| 25 |
-modernize-use-nullptr,# it went crazy with three-way comparison operators, |
| 26 |
-modernize-use-trailing-return-type, |
| 27 |
-modernize-return-braced-init-list, |
| 28 |
-modernize-concat-nested-namespaces, |
| 29 |
-modernize-use-nodiscard, |
| 30 |
-modernize-use-default-member-init, |
| 31 |
-modernize-type-traits,# we need to support C++14, |
| 32 |
-modernize-deprecated-headers, |
| 33 |
,# There's a lot of these and most of them are probably not useful, |
| 34 |
-modernize-pass-by-value, |
| 35 |
|
| 36 |
performance-*, |
| 37 |
-performance-enum-size, |
| 38 |
|
| 39 |
portability-*, |
| 40 |
|
| 41 |
readability-*, |
| 42 |
-readability-braces-around-statements, |
| 43 |
-readability-container-size-empty, |
| 44 |
-readability-convert-member-functions-to-static, |
| 45 |
-readability-else-after-return, |
| 46 |
-readability-function-cognitive-complexity, |
| 47 |
-readability-function-size, |
| 48 |
-readability-identifier-length, |
| 49 |
-readability-implicit-bool-conversion, |
| 50 |
-readability-isolate-declaration, |
| 51 |
-readability-magic-numbers, |
| 52 |
-readability-named-parameter, |
| 53 |
-readability-qualified-auto, |
| 54 |
-readability-redundant-access-specifiers, |
| 55 |
-readability-simplify-boolean-expr, |
| 56 |
-readability-static-definition-in-anonymous-namespace, |
| 57 |
-readability-uppercase-literal-suffix, |
| 58 |
-readability-use-anyofallof, |
| 59 |
-readability-avoid-return-with-void-value, |
| 60 |
|
| 61 |
,# time hogs, |
| 62 |
-bugprone-throw-keyword-missing, |
| 63 |
-modernize-replace-auto-ptr, |
| 64 |
-readability-identifier-naming, |
| 65 |
|
| 66 |
,# We cannot use this until clang-tidy supports custom unique_ptr, |
| 67 |
-bugprone-use-after-move, |
| 68 |
,# Doesn't recognize unevaluated context in CATCH_MOVE and CATCH_FORWARD, |
| 69 |
-bugprone-macro-repeated-side-effects, |
| 70 |
WarningsAsErrors: >- |
| 71 |
clang-analyzer-core.*, |
| 72 |
clang-analyzer-cplusplus.*, |
| 73 |
clang-analyzer-security.*, |
| 74 |
clang-analyzer-unix.*, |
| 75 |
performance-move-const-arg, |
| 76 |
performance-unnecessary-value-param, |
| 77 |
readability-duplicate-include, |
| 78 |
HeaderFilterRegex: '.*\.(c|cxx|cpp)$' |
| 79 |
FormatStyle: none |
| 80 |
CheckOptions: {} |
| 81 |
... |