[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
Wed Jun 28 12:10:12 PDT 2017


yamaguchi created this revision.
Herald added a subscriber: hiraditya.

We don't want to autocomplete flags whose Flags class has `NoDriverOption` when argv[1] is not `-cc1`.

Another idea for this implementation is to make --autocomplete a cc1
option and handle it in clang Frontend, by porting --autocomplete
handler from Driver to Frontend, so that we can handle Driver options
and CC1 options in unified manner.


https://reviews.llvm.org/D34770

Files:
  clang/lib/Driver/Driver.cpp
  clang/test/Driver/autocomplete.c
  clang/utils/bash-autocomplete.sh
  llvm/include/llvm/Option/OptTable.h
  llvm/lib/Option/OptTable.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34770.104486.patch
Type: text/x-patch
Size: 4367 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170628/2c142cdf/attachment.bin>


More information about the cfe-commits mailing list