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 produces the output:
foo/bar.cpp:1: no copyright notice found
Another script I also use:
cppcheck . --template gcc -q --enable=style,unusedFunctions
With an exit:
apple.h:8: style: The class 'MyPie' has no constructor. Member variables not initialized.
I would like to double-click on the error and go to the source code in the "Compilation Exit" window. Only gcc errors seem to be detected, and these custom ones are ignored, although they have the same format.
source share