我可以从Qt Creator中的自定义生成步骤获取生成警告吗?

我可以从Qt Creator中的自定义生成步骤获取生成警告吗?,qt,qt4,static-analysis,qt-creator,Qt,Qt4,Static Analysis,Qt Creator,我有以下脚本,作为Qt Creator中的自定义构建步骤运行: git ls-files . | egrep "\.cpp$|\.h$" | xargs vera++ 然后给出输出: foo/bar.cpp:1: no copyright notice found 我还使用的另一个脚本是: cppcheck . --template gcc -q --enable=style,unusedFunctions 对于输出: apple.h:8: style: The class 'MyPie'

我有以下脚本,作为Qt Creator中的自定义构建步骤运行:

git ls-files . | egrep "\.cpp$|\.h$" | xargs vera++
然后给出输出:

foo/bar.cpp:1: no copyright notice found
我还使用的另一个脚本是:

cppcheck . --template gcc -q --enable=style,unusedFunctions
对于输出:

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

我希望双击错误并在编译输出窗口中找到源代码。似乎只检测到gcc错误,并且忽略这些自定义错误,即使它们具有相同的格式。

不幸的是,这是正确的:Qt Creator使用输出解析器从应用程序的输出中过滤出有趣的内容。此时,将根据用于构建的工具链选择解析器。自定义生成步骤此时未分配任何输出解析器。我们应该添加一种方法,至少将现有解析器添加到自定义构建步骤中

我建议您在Qt Creator bugtracker中编写一个功能请求