Oliver Stöneberg

Results 1142 comments of Oliver Stöneberg

> Furthermore, cppcheck is a 100% volunteer effort. If companies are making it so difficult for developers to have a productive dev environment then they should be investing either money,...

> And anyone wishing to run cppcheck of dusty old systems could make a static build of cppcheck using a recent compiler, then just copy the binary to that old...

> At work I'm working on a reasonably large C++ codebase that we've been building continuously (we have CI) for a few years with GCC 4.8 + C++11 flag. We're...

Compilation with Qt 5.2 on Ubuntu 14.04 fails: ``` In file included from /usr/include/qt5/QtCore/qobjectdefs.h:47:0, from /usr/include/qt5/QtGui/qwindowdefs.h:46, from /usr/include/qt5/QtWidgets/qwidget.h:45, from /usr/include/qt5/QtWidgets/qmainwindow.h:45, from /usr/include/qt5/QtWidgets/QMainWindow:1, from /cppcheck/gui/mainwindow.h:22, from /cppcheck/gui/mainwindow.cpp:19: /usr/include/qt5/QtCore/qobjectdefs_impl.h: In instantiation of...

On Ubuntu 16.04 is is not possible to build the GUI with CMake since `Qt5LinguistToolsConfig.cmake` is somehow missing from `qttools5-dev`. It does work with `qmake` though. The `qmake` has hard-coded...

Interestingly there is a compiler version check in `cli/main.cpp`. That should probably be performed in an early common include instead or removed completely since the build will probably never reached...

The only thing which is exclusive to the Appveyor build is the usage of Visual Studio 2013 and Qt 5.6. The Visual Studio 2015 build was broken by ourselves and...

The `OVERRIDE` define can be replaced with just the `override` usage now we move to GCC 4.8. We have been doing this in the GUI code already.

This still requires checks in `checkleakautovar.cpp` and `checkunusedvar.cpp` adjusted as well as unit tests to check if those warnings are actually triggered. The message from `CheckUnusedVar` would not have been...

Thanks for your contribution. Please also provide unit tests for this check. https://trac.cppcheck.net/ticket/9794 looks like a related ticket.