Make c-defun-name analyze more thoroughly a function type which is a struct
commit735c8b516e09ecd056563569fb132e5ca56810d7
authorAlan Mackenzie <acm@muc.de>
Tue, 21 Nov 2017 18:06:11 +0000 (21 18:06 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 21 Nov 2017 18:06:11 +0000 (21 18:06 +0000)
treea3365aea1cae4e504f6fde72a223d8942f9563b3
parent92f0c4cd56d4dc1a92c116172404e65996c5884d
Make c-defun-name analyze more thoroughly a function type which is a struct

This fixes bug #29293.

* lisp/progmodes/cc-cmds.el (c-defun-name): When a struct (etc.) type is
encountered, check whether it is the return type of a function rather than a
declaration of the struct itself.  Similarly adapt the cond arm which deals
with functions properly to recognize struct return types.
lisp/progmodes/cc-cmds.el