danmar/cppcheck — pull request #187 by sam-truscott (2013-10-18 10:28:54+00:00)
Title: Clean squash for Initial QT support

Copy/clean squash of Pull #138

Hi guys,

We've been using cppcheck for our QT project but we kept getting false-positives from some of the functions that were exposed to QT so I've done a small patch that'll scan the code for Q_PROPERTY variables and also tokenize the QML (essentially javascript) sudo-code for calls that reference the C/C++ code.

//commit ---------------------------------------------------------------------------------------------

Will check for Q_PROPERTY fields and remove them from the unused function list
Will parse the .qml files (if they're in the source list of files to check) and remove references to C/C++ functions which would have otherwise been unused.
Use --enable=all or --enable=qt etc to enable the functionality and add
the *.qml (i.e. src/assets) path to the command line interface
invocation