summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--completions/cppcheck2
1 files changed, 1 insertions, 1 deletions
diff --git a/completions/cppcheck b/completions/cppcheck
index 5dd30931..dc321398 100644
--- a/completions/cppcheck
+++ b/completions/cppcheck
@@ -52,7 +52,7 @@ _cppcheck()
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
[[ $COMPREPLY == *= ]] && compopt -o nospace
else
- _filedir @(cpp|cxx|cc|c++|c|tpp|txx)
+ _filedir @(cpp|cxx|cc|c++|c|h|hpp|hxx|h++|tpp|txx)
fi
} &&
complete -F _cppcheck cppcheck