我觉得真的很愚蠢,但是我如何在 vera++ 中使用通配符?我想我可以这样做:
vera++ --root "C:\Program Files (x86)\vera++\lib\vera++" -R L001 *.cpp
但我得到:
error: cannot open source file *.cpp
while executing
"GetAllLines $f"
...
谢谢,丹尼尔·德克斯
我觉得真的很愚蠢,但是我如何在 vera++ 中使用通配符?我想我可以这样做:
vera++ --root "C:\Program Files (x86)\vera++\lib\vera++" -R L001 *.cpp
但我得到:
error: cannot open source file *.cpp
while executing
"GetAllLines $f"
...
谢谢,丹尼尔·德克斯
总结评论:
-
作为文件名和管道在标准输入上的文件列表中传递,或使用 Makefile 或类似的脚本或工具运行器,或使用PowerShell 或 for 循环,或使用另一个 shell(如 MinGW 或 Cygwin)。