diff options
Diffstat (limited to 'completions/cppcheck')
-rw-r--r-- | completions/cppcheck | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/completions/cppcheck b/completions/cppcheck index bcf937bb..64bb9b02 100644 --- a/completions/cppcheck +++ b/completions/cppcheck @@ -7,7 +7,7 @@ _cppcheck() case $prev in --append|--exitcode-suppressions|--file-list|--rule-file|\ - --suppressions-list|--includes-file|-i) + --suppressions-list|--includes-file|--include|-i) _filedir return ;; @@ -39,8 +39,13 @@ _cppcheck() COMPREPLY=( $( compgen -W "{2..$(_ncpus)}" -- "$cur" ) ) return ;; + --language|-x) + COMPREPLY=( $( compgen -W 'c c++' -- "$cur" ) ) + return + ;; --std) - COMPREPLY=( $( compgen -W 'c99 c++11 posix' -- "$cur" ) ) + COMPREPLY=( $( compgen -W 'c89 c99 c11 c++03 c++11 posix' \ + -- "$cur" ) ) return ;; --platform) |