From b9189ce170388d87c46a4a37f3e05dba0cd8878a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sun, 28 Oct 2012 22:36:14 +0200 Subject: [PATCH] cppcheck: Add --language/-x argument completion. --- completions/cppcheck | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/completions/cppcheck b/completions/cppcheck index 2ee5359b..ed9da3e3 100644 --- a/completions/cppcheck +++ b/completions/cppcheck @@ -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" ) )