| 1 |
--- |
| 2 |
# |
| 3 |
# These are the obligatory clang-tidy checks for BornAgain |
| 4 |
# |
| 5 |
# To invoke clang-tidy, run |
| 6 |
# setclang |
| 7 |
# cmake -DBA_TIDY=ON -DBORNAGAIN_PYTHON=OFF -DBA_GUI=OFF .. |
| 8 |
# ninja |
| 9 |
|
| 10 |
Checks: ' |
| 11 |
-*, |
| 12 |
-*.* |
| 13 |
bugprone-copy-constructor-init, |
| 14 |
bugprone-exception-escape, |
| 15 |
bugprone-misplaced-widening-cast, |
| 16 |
clang-analyzer-optin.cplusplus.VirtualCall, |
| 17 |
cppcoreguidelines-explicit-virtual-functions, |
| 18 |
cppcoreguidelines-pro-type-const-cast, |
| 19 |
hicpp-move-const-arg, |
| 20 |
llvm-qualified-auto, |
| 21 |
misc-uniqueptr-reset-release, |
| 22 |
modernize-avoid-bind, |
| 23 |
modernize-make-unique, |
| 24 |
modernize-pass-by-value, |
| 25 |
modernize-use-auto, |
| 26 |
modernize-use-default-member-init, |
| 27 |
modermize-use-emplace, |
| 28 |
modernize-use-equals-default, |
| 29 |
modernize-use-nullptr, |
| 30 |
modernize-use-override, |
| 31 |
modernize-use-using, |
| 32 |
performance-for-range-copy, |
| 33 |
performance-inefficient-vector-operation, |
| 34 |
performance-unnecessary-copy-initialization, |
| 35 |
readability-avoid-const-params-in-decls, |
| 36 |
readability-const-return-type, |
| 37 |
readability-container-size-empty, |
| 38 |
readability-delete-null-pointer, |
| 39 |
readability-inconsistent-declaration-parameter-name, |
| 40 |
readability-non-const-parameter, |
| 41 |
readability-qualified-auto, |
| 42 |
readability-redundant-access-specifiers, |
| 43 |
|
| 44 |
' |
| 45 |
# keep the closing quotation mark |
| 46 |
|
| 47 |
# temporarily disabled: |
| 48 |
# -modernize-loop-convert, # waiting for <ranges> |