3

我有一个问题,有没有办法使用 cppcheck-htmlreport 从几个 xml 生成一个 html 文件?

通常我这样做:

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

现在我想做这样的事情

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

但是当我这样做时,推荐 cppcheck 只转换一个 xml 文件......

有谁能够帮我?

我很抱歉我的英语很差。

4

1 回答 1

0

你试过了吗

cat *.xml >> newXmlFile.xml

在调用 cppcheck-htmlreport 之前?cat 命令将当前文件夹中所有 xml 文件的 xml 内容连接起来,并将结果存储到 newXmlFile.xml 中。

于 2015-09-18T10:05:24.283 回答