我使用LLVM实用程序进行了代码覆盖测试。之后,我需要做一个HTML封面文件。我使用了命令
llvm-cov show test -instr-profile=default.profdata -format=html > report.html
然后我收到以下错误:
未知命令行参数'-format = html'。
我如何解决问题?
根据文档,语法为
llvm-cov show [options] -instr-profile PROFILE BIN [-object BIN,…] [[-object BIN]] [SOURCES]
因此,选项-format=html
需要在配置文件和二进制名称之前进行。
llvm-cov show -format=html -instr-profile default.profdata test > report.html