cppcheck: Offer header filename completions too.
This commit is contained in:
parent
4e0c3ea683
commit
286f7ec44e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user