The argument to path is supposed to be optional, but guardonce will complain about a missing argument if there is any filter following it.
For example:
cgmb@localhost:~/abseil-cpp$ checkguard -r -o guard -p 'path | upper | append _' absl
Missing argument from "path" in pattern
Workaround: Put a big number for the path depth. As long as the actual path depth is smaller than that, the behaviour will be the same as not supplying an argument.
The argument to path is supposed to be optional, but guardonce will complain about a missing argument if there is any filter following it.
For example:
Workaround: Put a big number for the path depth. As long as the actual path depth is smaller than that, the behaviour will be the same as not supplying an argument.