Код: Выделить всё
class Foo {
// cppcheck-suppress noExplicitConstructor
Foo(int foo) { }
}
< /code>
cppcheck call: < /p>
$ cppcheck.exe --enable=all foo.cpp
Checking foo.cpp...
[foo.cpp:3]: (style) Class 'Foo' has a constructor with 1 argument that is not explicit.
Подробнее здесь: https://stackoverflow.com/questions/377 ... g-cppcheck
Мобильная версия