[PATCH] D33383: [GSoC] Flag value completion for clang
Yuka Takahashi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 17 23:13:02 PDT 2017
yamaguchi updated this revision to Diff 102958.
yamaguchi marked 10 inline comments as done.
yamaguchi added a comment.
Cleaned suggestValueCompletions and bash-autocomplete.sh, and added tests.
We have passed flags and values from bash to clang like `clang --autocomplete=l,=,-stdlib`, but I've changed this to pass `clang --autocomplte=-stdlib=,l` instead. This is more simple.
Added support and test for -meabi flag.
This flag is corner case, because it doesn't take `=` suffix like `-stdlib=`.
When `clang -stdlib=[tab]` is pushed, we would give possible values (libstd++,..), and when `clang -stdlib= [tab]` is pushed, we just give files under current directory.
And when `clang -meabi [tab]` is pushed, we give possible values (gnu,..).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 19058 bytes
Desc: not available
More information about the llvm-commits