cppcheck: Offer header filename completions too.

This commit is contained in:
Ville Skyttä 2011-11-07 20:11:19 +02:00
parent 4e0c3ea683
commit 286f7ec44e

View File

@ -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