| 1 |
--- |
| 2 |
# |
| 3 |
# This is the BornAgain configuration for clang-tidy. |
| 4 |
# |
| 5 |
# To invoke clang-tidy, run |
| 6 |
# cmake -DBORNAGAIN_TIDY=ON -DBORNAGAIN_PYTHON=OFF -DBORNAGAIN_GUI=OFF .. |
| 7 |
# make |
| 8 |
# |
| 9 |
# Below, we select all checks ('*'), then deselect quite a number of them. |
| 10 |
# |
| 11 |
# As we are not aware of an official way to insert comments in a long string literal, |
| 12 |
# we do a dirty little trick: we write comments as if they were no-check specifiers. |
| 13 |
# |
| 14 |
Checks: '*, |
| 15 |
|
| 16 |
|
| 17 |
-SectionComment_We_disagree_with_the_following_checks__They_shall_remain_permanently_disabled, |
| 18 |
|
| 19 |
-*-braces-around-statements, |
| 20 |
-*-convert-member-functions-to-static, |
| 21 |
-*-implicit-bool-conversion, |
| 22 |
-*-magic-numbers, |
| 23 |
-*-named-parameter, |
| 24 |
-*-trailing-return*, |
| 25 |
-*-uppercase-literal-suffix, |
| 26 |
-*nodiscard, |
| 27 |
-abseil-string-find-str-contains, |
| 28 |
-bugprone-branch-clone, |
| 29 |
-bugprone-suspicious-include, |
| 30 |
-cert-err58-cpp, |
| 31 |
-cert-err61-cpp, |
| 32 |
-cert-msc30-c*, |
| 33 |
-cert-msc50-cpp, |
| 34 |
-clang-analyzer-alpha*, |
| 35 |
-clang-analyzer-alpha.deadcode.UnreachableCode, |
| 36 |
-clang-analyzer-security.insecureAPI.strcpy, |
| 37 |
-cppcoreguidelines-init-variables, |
| 38 |
-cppcoreguidelines-macro-usage, |
| 39 |
-cppcoreguidelines-non-private-member-variables-in-classes, |
| 40 |
-cppcoreguidelines-pro-bounds-constant-array-index, |
| 41 |
-cppcoreguidelines-pro-bounds-pointer-arithmetic, |
| 42 |
-cppcoreguidelines-pro-type-cstyle-cast, |
| 43 |
-cppcoreguidelines-pro-type-member-init, |
| 44 |
-cppcoreguidelines-pro-type-reinterpret-cast, |
| 45 |
-cppcoreguidelines-pro-type-vararg, |
| 46 |
-cppcoreguidelines-slicing, |
| 47 |
-fuchsia-default-arguments-calls, |
| 48 |
-fuchsia-default-arguments-declarations, |
| 49 |
-fuchsia-overloaded-operator, |
| 50 |
-fuchsia-statically-constructed-objects, |
| 51 |
-fuchsia-trailing-return, |
| 52 |
-google-build-using-namespace, |
| 53 |
-google-default-arguments, |
| 54 |
-google-explicit-constructor, |
| 55 |
-google-readability-casting, |
| 56 |
-google-readability-todo, |
| 57 |
-google-runtime-int, |
| 58 |
-hicpp-exception-baseclass, |
| 59 |
-hicpp-explicit-conversions, |
| 60 |
-hicpp-member-init, |
| 61 |
-hicpp-signed-bitwise, |
| 62 |
-hicpp-vararg, |
| 63 |
-llvmlibc-callee-namespace, |
| 64 |
-llvmlibc-implementation-in-namespace, |
| 65 |
-llvmlibc-restrict-system-libc-headers, |
| 66 |
-misc-no-recursion, |
| 67 |
-misc-throw-by-value-catch-by-reference, |
| 68 |
-performance-inefficient-string-concatenation, |
| 69 |
-performance-noexcept-move-constructor, |
| 70 |
-performance-no-automatic-move, |
| 71 |
-performance-unnecessary-value-param, |
| 72 |
-readability-use-anyofallof, |
| 73 |
|
| 74 |
|
| 75 |
-SectionComment_To_be_manually_checked_from_time_to_time, |
| 76 |
|
| 77 |
-readability-isolate-declaration, |
| 78 |
-performance-inefficient-vector-operation, |
| 79 |
-performance-unnecessary-copy-initialization, |
| 80 |
-*-move-const-arg, |
| 81 |
-modernize-use-default-member-init, |
| 82 |
-readability-redundant-member-init, |
| 83 |
|
| 84 |
|
| 85 |
-SectionComment_Disabled_unless_3rdparty_libraries_are_improved, |
| 86 |
|
| 87 |
-*avoid-goto, |
| 88 |
-*special-member-functions, |
| 89 |
-clang-analyzer-cplusplus.NewDeleteLeaks, |
| 90 |
-cppcoreguidelines-avoid-non-const-global-variables, |
| 91 |
-cppcoreguidelines-pro-bounds-array-to-pointer-decay, |
| 92 |
-hicpp-no-array-decay, |
| 93 |
-llvm-include-order, |
| 94 |
-llvm-namespace-comment, |
| 95 |
-readability-redundant-access-specifiers, |
| 96 |
|
| 97 |
|
| 98 |
-SectionComment_Resolving_the_following_checks_would_be_too_much_work_right_now, |
| 99 |
|
| 100 |
-*avoid-c-arrays, |
| 101 |
-*narrowing-conversions, |
| 102 |
-cppcoreguidelines-owning-memory, |
| 103 |
-bugprone-unused-return-value, |
| 104 |
-bugprone-parent-virtual-call, |
| 105 |
|
| 106 |
|
| 107 |
-SectionComment_Temporarily_disabled_checks__We_need_to_investigate_them_one_by_one, |
| 108 |
|
| 109 |
-bugprone-copy-constructor-init, |
| 110 |
-bugprone-exception-escape, |
| 111 |
-bugprone-misplaced-widening-cast, |
| 112 |
-clang-analyzer-core.CallAndMessage, |
| 113 |
-clang-analyzer-optin.cplusplus.VirtualCall, |
| 114 |
-cppcoreguidelines-pro-type-const-cast, |
| 115 |
-cppcoreguidelines-pro-type-static-cast-downcast, |
| 116 |
-google-runtime-references, |
| 117 |
-misc-non-private-member-variables-in-classes, |
| 118 |
-modernize-loop-convert, |
| 119 |
|
| 120 |
|
| 121 |
-SectionComment_Automizable__To_be_kept_satisfied, |
| 122 |
*-use-auto, |
| 123 |
*-use-emplace, |
| 124 |
*-use-equals-default, |
| 125 |
*-use-nullptr, |
| 126 |
*-use-override, |
| 127 |
cppcoreguidelines-explicit-virtual-functions, |
| 128 |
google-readability-avoid-underscore-in-googletest-name, |
| 129 |
hicpp-noexcept-move, |
| 130 |
llvm-qualified-auto, |
| 131 |
misc-uniqueptr-reset-release, |
| 132 |
modernize-avoid-bind, |
| 133 |
modernize-make-unique, |
| 134 |
modernize-pass-by-value, |
| 135 |
modernize-raw-string-literal, |
| 136 |
modernize-use-using, |
| 137 |
performance-for-range-copy, |
| 138 |
readability-avoid-const-params-in-decls, |
| 139 |
readability-const-return-type, |
| 140 |
readability-non-const-parameter, |
| 141 |
readability-container-size-empty, |
| 142 |
readability-delete-null-pointer, |
| 143 |
readability-inconsistent-declaration-parameter-name, |
| 144 |
readability-qualified-auto, |
| 145 |
readability-simplify-boolean-expr, |
| 146 |
|
| 147 |
|
| 148 |
' |
| 149 |
# keep the closing quotation mark |