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.
This commit is contained in:
parent
00cb6e052a
commit
f373a23e51
1 changed files with 2 additions and 0 deletions
|
@ -10678,6 +10678,8 @@ This function might do hidden buffer changes."
|
|||
(c-forward-syntactic-ws))
|
||||
|
||||
(when (and (not got-identifier)
|
||||
(or backup-at-type
|
||||
(not (memq context '(arglist decl))))
|
||||
(or (and new-style-auto
|
||||
(looking-at c-auto-ops-re))
|
||||
(and (or maybe-typeless backup-maybe-typeless)
|
||||
|
|
Loading…
Add table
Reference in a new issue