[SOLVED] Result of source code analysis in Qt Creator
-
We are using a tool for static source code analyses. This tool can output findings as free form text. E. g.
@... other findings ...
<path/to/my/source/parameter.cpp(1,1): MsgID(4711) Prefer C++ style comments to C style comments.
C++ style comments can be nested unlike the C-style comments.
... other findings ...@I'm wondering whether it is possible to use the external file in Qt Creator like "Compiler Output": show the message and got to source on click
Regards,
Thomas -
Hi,
I think you would need to write a plugin for QtCreator that would parse the output file of your static code analyzer and show the problem in the Issue Pane. You might find more information in "QtCreator's documentation about extension":http://doc-snapshot.qt-project.org/qtcreator-extending/extending-index.html
Hope it helps
-
The current solution is to write to a file *.tasks in the format
@<Path/to/file/filename><TAB><ROW><TAB><"warn"|"err"><TAB><COL><Message to show>@Example:
@c:\home\src\handler.cpp 149 warn 12 Trigraph '??!' replaced with '|'.@This file can be drag&drop into QtCreator and shown in output pane Issues.
-
Hi, I haven't tried it myself but maybe you can use this third party plugin:
"QtProjectTool":http://sourceforge.net/projects/qtprojecttool/
http://qt-project.org/forums/viewthread/25797/You may have to write an adapter for your static analysis tool but it might save you some time.