cppcheck: Add --language/-x argument completion.
This commit is contained in:
parent
d803323974
commit
b9189ce170
@ -39,6 +39,10 @@ _cppcheck()
|
|||||||
COMPREPLY=( $( compgen -W "{2..$(_ncpus)}" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "{2..$(_ncpus)}" -- "$cur" ) )
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
--language|-x)
|
||||||
|
COMPREPLY=( $( compgen -W 'c c++' -- "$cur" ) )
|
||||||
|
return
|
||||||
|
;;
|
||||||
--std)
|
--std)
|
||||||
COMPREPLY=( $( compgen -W 'c89 c99 c11 c++03 c++11 posix' \
|
COMPREPLY=( $( compgen -W 'c89 c99 c11 c++03 c++11 posix' \
|
||||||
-- "$cur" ) )
|
-- "$cur" ) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user