Can I get warnings about creating from a custom build phase in Qt Creator?

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.

+4
source share
1 answer

This, unfortunately, is correct: Qt Creator uses output parsers to filter out interesting materials from application results. At this time, parsers are selected based on the tool chains used for assembly. Custom build steps currently do not get any output parsers. We must add a way, at least to add existing parsers to the stages of custom assembly.

I recommend writing a function request to the Qt Creator bugtracker at https://bugreports.qt.io/browse/QTCREATORBUG

+3
source

Source: https://habr.com/ru/post/1309755/


All Articles