aboutsummaryrefslogtreecommitdiffstats
path: root/src/_include-what-you-use
diff options
context:
space:
mode:
authorPaul Seyfert <pseyfert.mathphys@gmail.com>2018-05-31 17:27:22 +0200
committerPaul Seyfert <pseyfert.mathphys@gmail.com>2018-05-31 17:27:22 +0200
commit7d963814db27b98f78b2eb5b102ab5b6daa36d12 (patch)
tree75da3d6f11ae4c8f6a7be4e17759f68cf7166dc7 /src/_include-what-you-use
parentadding rough version of include-what-you-use completion (diff)
downloadzsh-completions-7d963814db27b98f78b2eb5b102ab5b6daa36d12.tar
zsh-completions-7d963814db27b98f78b2eb5b102ab5b6daa36d12.tar.gz
zsh-completions-7d963814db27b98f78b2eb5b102ab5b6daa36d12.tar.bz2
zsh-completions-7d963814db27b98f78b2eb5b102ab5b6daa36d12.tar.lz
zsh-completions-7d963814db27b98f78b2eb5b102ab5b6daa36d12.tar.xz
zsh-completions-7d963814db27b98f78b2eb5b102ab5b6daa36d12.tar.zst
zsh-completions-7d963814db27b98f78b2eb5b102ab5b6daa36d12.zip
suggest -Xiwyu more than once to include-what-you-use
Diffstat (limited to 'src/_include-what-you-use')
-rw-r--r--src/_include-what-you-use3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/_include-what-you-use b/src/_include-what-you-use
index c179a9d..04e5c2f 100644
--- a/src/_include-what-you-use
+++ b/src/_include-what-you-use
@@ -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