We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a6d8b8 commit 894094eCopy full SHA for 894094e
.clang-tidy
@@ -19,6 +19,7 @@ Checks: >
19
-misc-include-cleaner,
20
-misc-non-private-member-variables-in-classes,
21
-misc-use-anonymous-namespace,
22
+ -misc-use-internal-linkage,
23
modernize-*,
24
-modernize-avoid-c-arrays,
25
-modernize-use-trailing-return-type,
@@ -29,12 +30,14 @@ Checks: >
29
30
-readability-avoid-const-params-in-decls,
31
-readability-braces-around-statements,
32
-readability-else-after-return,
33
+ -readability-enum-initial-value,
34
-readability-function-cognitive-complexity,
35
-readability-function-size,
36
-readability-identifier-length,
37
-readability-implicit-bool-conversion,
38
-readability-isolate-declaration,
39
-readability-magic-numbers,
40
+ -readability-math-missing-parentheses,
41
-readability-named-parameter,
42
-readability-simplify-boolean-expr,
43
mpi-*,
integration/VODE/vode_dvhin.H
@@ -122,17 +122,13 @@ void dvhin (BurnT& state, DvodeT& vstate, amrex::Real& H0, int& NITER, int& IER)
122
123
}
124
125
- // Iteration done. Apply bounds, bias factor, and sign. Then exit.
+ // Iteration done. Apply bounds and bias factor. Then exit.
126
H0 = hnew * 0.5_rt;
127
- if (H0 < HLB) {
128
- H0 = HLB;
129
- }
130
- if (H0 > HUB) {
131
- H0 = HUB;
132
+ H0 = std::clamp(H0, HLB, HUB);
133
134
135
+ // apply sign
136
H0 = std::copysign(H0, vstate.tout - vstate.t);
137
NITER = iter;
138
IER = 0;
networks/aprox13/actual_network.H
@@ -134,7 +134,7 @@ namespace NSE_INDEX
#endif
namespace Rates {
- enum NetworkRates {
+ enum NetworkRates: std::uint8_t {
He4_He4_He4_to_C12 = 1,
139
C12_He4_to_O16,
140
C12_C12_to_Ne20_He4,
networks/aprox21/actual_network.H
@@ -152,7 +152,7 @@ namespace NSE_INDEX
152
153
154
155
+ enum NetworkRates : std::uint8_t {
156
H1_H1_to_He3 = 1,
157
H1_H1_H1_to_He3,
158
P_to_N,
networks/iso7/actual_network.H
@@ -114,7 +114,7 @@ namespace NSE_INDEX
114
115
116
117
+ enum NetworkRates : std::uinit8_t {
118
C12_He4_to_O16 = 1,
119
He4_He4_He4_to_C12,
120
networks/rprox/actual_network.H
@@ -112,7 +112,7 @@ namespace network
112
113
namespace Rates
{
- enum NetworkRates
+ enum NetworkRates : std::uint8_t
C12_H1_to_N13,
0 commit comments