[Bash-autocompletion] Show HelpText with possible flags
authorYuka Takahashi <yukatkh@gmail.com>
Wed, 26 Jul 2017 13:36:58 +0000 (13:36 +0000)
committerYuka Takahashi <yukatkh@gmail.com>
Wed, 26 Jul 2017 13:36:58 +0000 (13:36 +0000)
commit1a3ea7bcf31810c809716e53abe843f20fd523f4
treee0eaed4cc9ea6e69d511a7da0f3dd38f4a913322
parent50fc19e4732a0370c1c046d6e95f5a02154a319b
[Bash-autocompletion] Show HelpText with possible flags

Summary:
`clang --autocomplete=-std` will show
```
-std:   Language standard to compile for
-std=   Language standard to compile for
-stdlib=        C++ standard library to use
```
after this change.

However, showing HelpText with completion in bash seems super tricky, so
this feature will be used in other shells (fish, zsh...).

Reviewers: v.g.vassilev, teemperor, ruiu

Subscribers: cfe-commits, hiraditya

Differential Revision: https://reviews.llvm.org/D35759

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@309113 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Driver.cpp
test/Driver/autocomplete.c
utils/bash-autocomplete.sh