[PATCH] D35759: [Bash-autocompletion] Show HelpText with possible flags
Rui Ueyama via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 22 07:47:33 PDT 2017
ruiu added inline comments.
================
Comment at: clang/utils/bash-autocomplete.sh:60
eval local path=${COMP_WORDS[0]}
- flags=$( "$path" --autocomplete="$arg" 2>/dev/null )
+ flags=$( "$path" --autocomplete="$arg" 2>/dev/null | sed -e 's/\t.*.\s*$//' )
# If clang is old that it does not support --autocomplete,
----------------
`\t.*.\s*` doesn't seem to make much sense to me. Isn't `\t.*` enough?
https://reviews.llvm.org/D35759
More information about the cfe-commits
mailing list