danmar/cppcheck — pull request #138 by sam-truscott-tru (2013-04-04 13:52:09+00:00)
Title: Initial QT support

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.