pocc / pre-commit-hooks

C/C++ hooks to integrate with pre-commit
Apache License 2.0
323 stars 67 forks source link

Incorrect order of arguments for include-what-you-use? #49

Open hurzelchen opened 2 years ago

hurzelchen commented 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>

but hooks/include_what_you_use.py:25 currently reads self.run_command([filename] + self.args)