suggest -Xiwyu more than once to include-what-you-use

This commit is contained in:
Paul Seyfert 2018-05-31 17:27:22 +02:00
parent 264856830f
commit 7d963814db
1 changed files with 1 additions and 2 deletions

View File

@ -42,7 +42,6 @@
# submit itself to any jurisdiction.
# TODO:
# - suggest -Xiwyu more than just once
# - prevent _iwyu_opts from running once the first clang option got passed
_iwyu_opts() {
@ -61,6 +60,6 @@ _iwyu_opts() {
'--verbose=[the higher the level, the more output]:a number:'
}
_arguments "-Xiwyu[include-what-you-use options]:include-what-you-use options:_iwyu_opts"
_arguments "*-Xiwyu[include-what-you-use options]:include-what-you-use options:_iwyu_opts"
# gcc will also provide --version and --help. Not ideal.
_gcc