clang22-bash-completion 22.1.8-r0
.bashrc shell profile filenameRoot-level OS directory path
SHA-2560d49ebb557f6886eda70c90c2b0a0154a3e12690dfe89643932264d3d714d776
MaleculeH(Po₂)
Evidence
1# Please add "source /path/to/bash-autocomplete.sh" to your .bashrc to use this.
2
3_clang_filedir()
4{
5 # _filedir function provided by recent versions of bash-completion package is
6 # better than "compgen -f" because the former honors spaces in pathnames while
7 # the latter doesn't. So we use compgen only when _filedir is not provided.
8 _filedir 2> /dev/null || COMPREPLY=( $( compgen -f ) )
9}
10
11_clang()
12{
13 local cur prev words cword arg flags w1 w2
14 # If latest bash-completion is not supported just initialize COMPREPLY and
15 # initialize variables by setting manually.
16 _init_completion -n 2> /dev/null
17 if [[ "$?" ! …
26:5…
27
28 # Pass all the current command-line flags to clang, so that clang can handle
29 # these internally.
30 # '=' is separated differently by bash, so we have to concat them without ','
31 for i in `seq 1 $cword`; do
32 if [[ $i == $cword || "${COMP_WORDS[$(($i+1))]}" == '=' ]]; then
33 arg="$arg${COMP_WORDS[$i]}"
⋯4 lines
38
39 # expand ~ to $HOME
40 eval local path=${COMP_WORDS[0]}
41 # Use $'\t' so that bash expands the \t for older versions of sed.
42 flags=$( "$path" --autocomplete="$arg" 2>/dev/null | sed -e $'s/\t.*//' )
43 # If clang is old that it does not support --autocomplete,
44 # fall back to the filename completion.
45 if [[ "$?" != 0 ]]; then
46 _clang_filedir
47 return
48 fi
49
50 # When clang does not emit any possible autocompletion, or user pushed tab after " ",
51 # just autocomplete files.
52 if [[ "$flags" == "$(echo -e …
1# Generated by abuild 3.17.0-r0
2# using fakeroot version 1.37.2
3pkgname = clang22-bash-completion
4pkgver = 22.1.8-r0
5pkgdesc = Bash completions for clang22
6url = https://llvm.org/
No evidence locations were recorded for this file. Raw result