1# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2_abilint_module() 3{ 4 local cur prev OPTS 5 COMPREPLY=() 6 cur="${COMP_WORDS[COMP_CWORD]}" 7 prev="${COMP_WORDS[COMP_CWORD-1]}" 8 case $prev in 9 '-d'|'--debug-info-dir') 10 local IFS=$'\n' 11 compopt -o dirnames 12 COMPREPLY=( $(compgen -d -- $cur) ) 13 return 0 14 ;; 15 esac 16 case $cur in 17 -*) 18 OPTS=" --idiff 19 --debug-info-dir 20 --help 21 --noout 22 --stdin 23 --tu" 24 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) 25 return 0 26 ;; 27 esac 28 local IFS=$'\n' 29 compopt -o filenames 30 COMPREPLY=( $(compgen -f -- $cur) ) 31 return 0 32} 33complete -F _abilint_module abilint 34