]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Prevent lone ids being parsed as types unless in decl arglists
authorAlan Mackenzie <acm@muc.de>
Tue, 29 Nov 2022 20:19:34 +0000 (20:19 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 29 Nov 2022 20:22:58 +0000 (20:22 +0000)
commitf373a23e5171fd8ecb4555cee618bbcd2e7077e3
tree9701e66d8830d4c160d5a1b58aaebeb7d8373a2a
parent00cb6e052a6adce087e24871068737e10c8adc10
CC Mode: Prevent lone ids being parsed as types unless in decl arglists

This fixes bug #59051.

* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): In the test for the
last invocation of c-fdoc-shift-type-backward before CASE 1, additionally
test CONTEXT not being an arglist or BACKUP-AT-TYPE being non-nil.
lisp/progmodes/cc-engine.el