]> git.ipfire.org Git - thirdparty/gcc.git/commit
Enhance option suggestion for options expected an argument (PR driver/89861).
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Apr 2019 07:17:38 +0000 (07:17 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Apr 2019 07:17:38 +0000 (07:17 +0000)
commit806ba3105ec3a5b9e7156a902ae5176ad2be2706
tree3a3157c04dae0517a76d552a6e57170e47b398e3
parent56fc9e27ae8d3b47d74f386ebdadab27649f455d
Enhance option suggestion for options expected an argument (PR driver/89861).

2019-04-01  Martin Liska  <mliska@suse.cz>

PR driver/89861
* opt-suggestions.c (option_proposer::build_option_suggestions):
Add variant without any argument in order to provide better
hints.
2019-04-01  Martin Liska  <mliska@suse.cz>

PR driver/89861
* gcc.dg/spellcheck-options-18.c: New test.
* gcc.dg/spellcheck-options-19.c: New test.
* gcc.dg/spellcheck-options-20.c: New test.
* gcc.dg/spellcheck-options-13.c: Adjust expected output.
* gcc.dg/completion-2.c: Add one variant with no argument.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@270053 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/opt-suggestions.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/completion-2.c
gcc/testsuite/gcc.dg/spellcheck-options-13.c
gcc/testsuite/gcc.dg/spellcheck-options-18.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/spellcheck-options-19.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/spellcheck-options-20.c [new file with mode: 0644]