|
1 | | -Suppressed 102227 warnings (102065 in non-user code, 162 NOLINT). |
2 | | -Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
3 | | -src/hyperparams.h: clang-tidy-18 -p=build -line-filter=[{\"name\":\"src/cart_cell.cc\",\"lines\":[[1,321]]},{\"name\":\"src/cart_cell.h\",\"lines\":[[1,250]]},{\"name\":\"src/cart_tumor.cc\",\"lines\":[[1,133]]},{\"name\":\"src/cart_tumor.h\",\"lines\":[[1,36]]},{\"name\":\"src/diffusion_thomas_algorithm.cc\",\"lines\":[[1,319]]},{\"name\":\"src/diffusion_thomas_algorithm.h\",\"lines\":[[1,194]]},{\"name\":\"src/forces_tumor_cart.cc\",\"lines\":[[1,163]]},{\"name\":\"src/forces_tumor_cart.h\",\"lines\":[[1,60]]},{\"name\":\"src/hyperparams.h\",\"lines\":[[1,216]]},{\"name\":\"src/tumor_cell.cc\",\"lines\":[[1,673]]},{\"name\":\"src/tumor_cell.h\",\"lines\":[[1,301]]},{\"name\":\"src/utils_aux.cc\",\"lines\":[[1,176]]},{\"name\":\"src/utils_aux.h\",\"lines\":[[1,96]]}] --enable-check-profile -store-check-profile=clang-tidy-review-profile --config-file=.clang-tidy --export-fixes=/tmp/tmpb2o1s_sd/tmpg5dwfux3.yaml src/hyperparams.h |
4 | | -/github/workspace/src/hyperparams.h:22:9: warning: header guard does not follow preferred style [llvm-header-guard] |
5 | | - 22 | #ifndef TUMOR_HYPERPARAMS_H_ |
6 | | - | ^~~~~~~~~~~~~~~~~~~~ |
7 | | - | GITHUB_WORKSPACE_SRC_HYPERPARAMS_H |
8 | | - 23 | #define TUMOR_HYPERPARAMS_H_ |
9 | | - | ~~~~~~~~~~~~~~~~~~~~ |
10 | | - | GITHUB_WORKSPACE_SRC_HYPERPARAMS_H |
11 | | -/github/workspace/src/hyperparams.h:25:1: warning: #includes are not sorted properly [llvm-include-order] |
12 | | - 25 | #include <cmath> |
13 | | - | ^ |
14 | | -note: this fix will not be applied because it overlaps with another fix |
15 | | -/github/workspace/src/hyperparams.h:26:1: warning: included header biodynamo.h is not used directly [misc-include-cleaner] |
16 | | - 26 | #include "biodynamo.h" |
17 | | - | ^~~~~~~~~~~~~~~~~~~~~~ |
18 | | - 27 | |
19 | | -/github/workspace/src/hyperparams.h:39:11: warning: no header providing "bdm::real_t" is directly included [misc-include-cleaner] |
20 | | - 27 | |
21 | | - 28 | namespace bdm { |
22 | | - 29 | |
23 | | - 30 | /// This file contains hyperparameters used in the simulation. Change: In a |
24 | | - 31 | /// future version it needs to be changed into a params file with no need to be |
25 | | - 32 | /// recompiled |
26 | | - 33 | |
27 | | - 34 | /// |
28 | | - 35 | /// TumorCell Hyperparameters |
29 | | - 36 | /// |
30 | | - 37 | |
31 | | - 38 | /// Rate of secretion of immunostimulatory factor of tumor cells per minute |
32 | | - 39 | constexpr real_t kRateSecretionImmunostimulatoryFactor = 10.0; |
33 | | - | ^ |
34 | | -/github/workspace/src/hyperparams.h:128:6: warning: result of integer division used in a floating point context; possible loss of precision [bugprone-integer-division] |
35 | | - 128 | (kBoundedSpaceLength / kResolutionGridSubstances) * |
36 | | - | ^ |
37 | | -/github/workspace/src/hyperparams.h:129:6: warning: result of integer division used in a floating point context; possible loss of precision [bugprone-integer-division] |
38 | | - 129 | (kBoundedSpaceLength / kResolutionGridSubstances) * |
39 | | - | ^ |
40 | | -/github/workspace/src/hyperparams.h:130:6: warning: result of integer division used in a floating point context; possible loss of precision [bugprone-integer-division] |
41 | | - 130 | (kBoundedSpaceLength / |
42 | | - | ^ |
43 | | -/github/workspace/src/hyperparams.h:189:14: warning: invalid case style for global constant 'kLengthBoxMechanics' [readability-identifier-naming] |
44 | | - 189 | const real_t kLengthBoxMechanics = |
45 | | - | ^~~~~~~~~~~~~~~~~~~ |
46 | | - | gKLengthBoxMechanics |
47 | | -/github/workspace/src/hyperparams.h:194:14: warning: invalid case style for global constant 'kSquaredMaxDistanceNeighborsForce' [readability-identifier-naming] |
48 | | - 194 | const real_t kSquaredMaxDistanceNeighborsForce = std::pow( |
49 | | - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
50 | | - | gKSquaredMaxDistanceNeighborsForce |
51 | | -/github/workspace/src/hyperparams.h:195:54: warning: no header providing "bdm::Math" is directly included [misc-include-cleaner] |
52 | | - 27 | 0.1 + std::cbrt(kDefaultVolumeNewTumorCell * 6 / Math::kPi) * |
53 | | - | ^ |
| 1 | + ^ |
54 | 2 | 102078 warnings generated. |
55 | 3 | Suppressed 102230 warnings (102068 in non-user code, 162 NOLINT). |
56 | 4 | Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
0 commit comments