CPPcheck html report

和自甴很熟 提交于 2019-12-24 05:30:16

问题


I have a question is there any way to generate one html file from few xml using cppcheck-htmlreport?

Normally I doing that:

/cppcheck-htmlreport --file /vobs/stn/dev/linux/cppcheck/xmlreport_v1.xml --title "xml1 test" --report-dir .

Now I want to do something like this

/cppcheck-htmlreport --file /vobs/stn/dev/linux/cppcheck/*.xml --title "xml1 test" --report-dir .

But when I did that commend cppcheck convert only one xml file...

Can anybody help me?

I'm sorry for my weak english.


回答1:


Did you try

cat *.xml >> newXmlFile.xml

before calling cppcheck-htmlreport? The cat-command concatenates the xml content of all xml files in the current folder and stores the result into newXmlFile.xml.



来源:https://stackoverflow.com/questions/29643816/cppcheck-html-report

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!