cppcheck: Don't stop completing after -DFOO.

This commit is contained in:
Ville Skyttä 2011-10-30 11:06:13 +02:00
parent 6e08dc5504
commit c3f6eda088
2 changed files with 11 additions and 1 deletions

View File

@ -11,7 +11,7 @@ _cppcheck()
_filedir
return
;;
-D*|--rule|--suppress|--template)
-D|--rule|--suppress|--template)
return
;;
--enable)

View File

@ -12,8 +12,18 @@ setup
assert_complete_any "cppcheck "
sync_after_int
assert_complete_any "cppcheck -"
sync_after_int
assert_complete_any "cppcheck -DFOO=BAR "
sync_after_int
assert_no_complete "cppcheck -D "
sync_after_int