1

我觉得真的很愚蠢,但是我如何在 vera++ 中使用通配符?我想我可以这样做:

vera++ --root "C:\Program Files (x86)\vera++\lib\vera++" -R L001 *.cpp

但我得到:

error: cannot open source file *.cpp
while executing
"GetAllLines $f"
...

谢谢,丹尼尔·德克斯

4

1 回答 1

0

总结评论:

  • Vera++ 似乎不支持这一点。(在 Windows 上,处理通配符是单个程序的责任;在其他平台上,它由 shell 处理。如果 Vera++ 主要由非 Windows 用户开发,这可能解释了疏忽。)
  • 你不是第一个遇到这种情况的人。
  • 有几种解决方法:-作为文件名和管道在标准输入上的文件列表中传递,或使用 Makefile 或类似的脚本或工具运行器,或使用PowerShell 或 for 循环,或使用另一个 shell(如 MinGW 或 Cygwin)。
于 2014-11-14T18:11:49.990 回答