]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Prevent ids in temporary "declarators" getting into c-found-types
authorAlan Mackenzie <acm@muc.de>
Mon, 16 Jan 2023 17:44:44 +0000 (17:44 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 16 Jan 2023 17:44:44 +0000 (17:44 +0000)
commitc1d32d9a20dc94d403725c288d168451b916c034
treed6392a726a425af57279712bcf8be1a340064731
parent140824dc099a84556341f089e8a939f4a80c3f7f
CC Mode: Prevent ids in temporary "declarators" getting into c-found-types

This should fix bug #60765.  In the scenario type an identifier in front of
foo (bar, baz), as when started a new statement.  This temporarily makes the
function call a declarator, and bar and baz types.  Don't enter bar and baz
into c-found-types.

* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1) (CASE 6): When a
'maybe type triggers this case, set `unsafe-maybe' to non-nil.
lisp/progmodes/cc-engine.el