cppcheck: Add --language/-x argument completion.

This commit is contained in:
Ville Skyttä 2012-10-28 22:36:14 +02:00
parent d803323974
commit b9189ce170

View File

@ -39,6 +39,10 @@ _cppcheck()
COMPREPLY=( $( compgen -W "{2..$(_ncpus)}" -- "$cur" ) )
return
;;
--language|-x)
COMPREPLY=( $( compgen -W 'c c++' -- "$cur" ) )
return
;;
--std)
COMPREPLY=( $( compgen -W 'c89 c99 c11 c++03 c++11 posix' \
-- "$cur" ) )