]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Recognise "struct foo {" as introducing a type declaration
authorAlan Mackenzie <acm@muc.de>
Wed, 1 Dec 2021 15:41:09 +0000 (15:41 +0000)
committerAlan Mackenzie <acm@muc.de>
Wed, 1 Dec 2021 15:41:09 +0000 (15:41 +0000)
commit84166ea2e6a5c54fad1d31812eb6f3b3ca7374a1
tree27f97f26d3c8317742431275eebee08d85f6b68d
parentbc6bcb8f0be9c472a381b07c1cfcb1d52f96ebd1
CC Mode: Recognise "struct foo {" as introducing a type declaration

This fixes bug #52157.

* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): If such a construct
is parsed, set the flag at-type-decl which is part of the function's return
value.
lisp/progmodes/cc-engine.el