Open hurzelchen opened 2 years ago
Maybe I'm just too new to integrating pre-commit into my project and use it incorrectly, but it seems that the arguments for include-what-you-use are passed incorrectly.
The manpage reads USAGE: include-what-you-use [-Xiwyu --iwyu_opt]... <clang opts> <source file>
USAGE: include-what-you-use [-Xiwyu --iwyu_opt]... <clang opts> <source file>
but hooks/include_what_you_use.py:25 currently reads self.run_command([filename] + self.args)
self.run_command([filename] + self.args)
Maybe I'm just too new to integrating pre-commit into my project and use it incorrectly, but it seems that the arguments for include-what-you-use are passed incorrectly.
The manpage reads
USAGE: include-what-you-use [-Xiwyu --iwyu_opt]... <clang opts> <source file>
but hooks/include_what_you_use.py:25 currently reads
self.run_command([filename] + self.args)