[PATCH] D34770: [Bash-autocompletion] Auto complete cc1 options if -cc1 is specified

Yuka Takahashi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 4 19:24:47 PDT 2017


yamaguchi added inline comments.


================
Comment at: clang/utils/bash-autocomplete.sh:16
+  if [[ "${COMP_WORDS[1]}" == "-cc1" || "$w1" == "-Xclang" ]]; then
+    arg="#"
+  fi
----------------
compnerd wrote:
> `prefix` may be a better term?
Thanks for reviewing!
$arg has string like `-stdlib=,plat`, so `prefix` seems not very appropriate?


https://reviews.llvm.org/D34770





More information about the cfe-commits mailing list