gpt4 book ai didi

c++ - vera++ 中的通配符

转载 作者:太空宇宙 更新时间:2023-11-04 13:43:21 36 4
gpt4 key购买 nike

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

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

但是我得到:

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

谢谢,丹尼尔·德克斯

最佳答案

总结评论:

  • Vera++ 似乎不支持这一点。 (在 Windows 上,处理通配符是各个程序的责任;在其他平台上,它由 shell 处理。如果 Vera++ 主要由非 Windows 用户开发,这可能解释了疏忽。)
  • You're not the first person to run into this.
  • 有几种解决方法:将 - 作为文件名传递到标准输入上的文件列表中,或者使用 Makefile 或类似的脚本或工具运行器,或者使用 PowerShell or a for loop ,或使用其他 shell(如 MinGW 或 Cygwin)。

关于c++ - vera++ 中的通配符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26935440/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com