From 1b4d48ef8f788fcd6e01166be2935637e7c95168 Mon Sep 17 00:00:00 2001 From: Paul Seyfert Date: Fri, 1 Jun 2018 19:27:36 +0200 Subject: [PATCH] allow multiple imp files and add directories to .imp completion --- src/_include-what-you-use | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_include-what-you-use b/src/_include-what-you-use index 04e5c2f..bb9902c 100644 --- a/src/_include-what-you-use +++ b/src/_include-what-you-use @@ -49,7 +49,7 @@ _iwyu_opts() { '--cwd=[specify the current working directory]:current working directory:_path_files -/' \ '--howtodebug[print instructions on how to run iwyu under gdb]' \ '--howtodebug=[print instructions on how to run iwyu under gdb if file matches argument]:file for debug run:_path_files' \ - '--mapping_file=[iwyu mapping file]:iwyu mapping file:_path_files -g *.imp' \ + '*'"--mapping_file=[iwyu mapping file]:iwyu mapping file:_path_files -g '*(/) *.imp'" \ "--no_default_mappings[do not add iwyu's default mappings]" \ '--pch_in_code[mark the first include in a translation unit as a precompiled header]' \ '--prefix_header_includes=[what to do with command line includes]:command line include treatment:(add keep remove)' \