]> gcc.gnu.org Git - gcc.git/commit
c++: add spellcheck suggestions for typedef etc. [PR77565]
authorMichel Morin <mimomorin@gmail.com>
Thu, 16 Sep 2021 14:29:54 +0000 (23:29 +0900)
committerJason Merrill <jason@redhat.com>
Thu, 23 Sep 2021 20:25:45 +0000 (16:25 -0400)
commiteb9f099c3df2b1b4c5fb0fa25cfdfa3cb5fc817e
treea28c86b3c539ab861892909deb26560dae82da03
parentfe4e6c824a580012bf9034cc33f0b440df93f56f
c++: add spellcheck suggestions for typedef etc. [PR77565]

cp_keyword_starts_decl_specifier_p misses many keywords that can
start decl-specifiers. This patch adds support for those keywords.

PR c++/77565

gcc/cp/ChangeLog:

* parser.c (cp_keyword_starts_decl_specifier_p): Handle more
decl-specifiers (typedef/inline/cv/explicit/virtual/friend).

gcc/testsuite/ChangeLog:

* g++.dg/spellcheck-pr77565.C: New test.
gcc/cp/parser.c
gcc/testsuite/g++.dg/spellcheck-pr77565.C [new file with mode: 0644]
This page took 0.049904 seconds and 5 git commands to generate.