1

I feel really really dumb but how do I use wildcards with vera++? I would think I could do:

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

But I get:

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

Thanks, Daniel Dekkers

Josh Kelley
  • 56,064
  • 19
  • 146
  • 246
Daniel Dekkers
  • 269
  • 4
  • 11

1 Answers1

0

To summarize the comments:

  • It would appear that Vera++ does not support this. (On Windows, handling wildcards is the responsibility of individual programs; on other platforms, it's handled by the shell. If Vera++ is primarily developed by non-Windows users, that may explain the oversight.)
  • You're not the first person to run into this.
  • There are several workarounds: pass - as a filename and pipe in a list of files on stdin, or use a Makefile or similar script or tool runner, or use PowerShell or a for loop, or use another shell (like MinGW or Cygwin).
Community
  • 1
  • 1
Josh Kelley
  • 56,064
  • 19
  • 146
  • 246