- versions used : SonarQube 8.7.1
I found this rule after I wrote some violating code using inline constexpr
variables.
The rule is explained as follows:
Which is actually wrong in the general case about variables. See constexpr specifier (since C++11) - cppreference.com
Only static member variables are implicitly
inline
.
Specially, global variables, defined at namespace scope are not implicitly inline
.