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.