Invoking clang-format with a path parameter is busted for me.
See output below:
Processing 1 file(s)...
YAML:28:19: error: unknown key 'StatementMacros'
StatementMacros: [MARKUPMAP, ASSERT_TRUE, ASSERT_FALSE, TEST, CHECK]
Error reading /home/freddy/gecko/.clang-format: Invalid argument
The error occurred in the implementation of the invoked mach command.
This should never occur and is likely a bug in the implementation of that
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.
If filing a bug, please include the full output of mach, including this error
The details of the failure are as follows:
File "/home/freddy/gecko/python/mach/mach/main.py", line 523, in _run
File "/home/freddy/gecko/python/mach/mach/registrar.py", line 101, in _run_command_handler
assert isinstance(result, (int, long))