Hello, On the following code: struct s { int& value() { return value; } int m_value; }; void foo(s* a, int* f) { *f = (a - 1)->value(); } cppcheck 2.6.3, 2.7.5, and current main (8d1fd19cc66d4a15ecb62253e0cb84e9854e6b86), all report the following style error: style: Parameter 'a' can be declared with const [constParameter] foo(s a, int f) ^ I think this is a false positive since s const* a would not compile, and s* const a has dubious value. Moreover there is no reason to expect the latter syntax...
Crash when importing furniture