[PATCH] D33237: [GSoC] Shell autocompletion for clang

Yuka Takahashi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 16 22:47:58 PDT 2017


yamaguchi added inline comments.


================
Comment at: clang/utils/bash-autocomplete.sh:13-14
+
+} &&
+    complete -F _clang clang
----------------
ruiu wrote:
> What is the meaning of `&&` here? It seems you can remove it.
syntax error will occur without `&&`, because for example,
This is correct:
`_fun() { echo "hoge"; } && echo "huga"`
But this is wrong:
`_fun() { echo "hoge"; } echo "huga"`


https://reviews.llvm.org/D33237





More information about the llvm-commits mailing list