Can I get build warnings from a custom build step in Qt Creator?

Posted by Derick on Stack Overflow See other posts from Stack Overflow or by Derick
Published on 2010-05-14T09:37:46Z Indexed on 2010/05/14 15:14 UTC
Read the original article Hit count: 317

Filed under:
|
|

I have the following script that I run as a custom build step in Qt Creator:

git ls-files . | egrep "\.cpp$|\.h$" | xargs vera++

Which then gives output:

foo/bar.cpp:1: no copyright notice found

Another script I also use is:

cppcheck . --template gcc -q --enable=style,unusedFunctions

With the output:

apple.h:8: style: The class 'MyPie' has no constructor. Member variables
 not initialized.

I would love to double-click on the error and go to the source in the Compile Output window. It seems that only gcc errors are detected and these custom ones are ignored even though they have the same format.

© Stack Overflow or respective owner

Related posts about qt-creator

Related posts about static-analysis