]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: make c-display-defun-name work with a pointer return type.
authorAlan Mackenzie <acm@muc.de>
Sun, 26 Aug 2018 11:05:22 +0000 (11:05 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 26 Aug 2018 11:05:22 +0000 (11:05 +0000)
commit5c642b2dc1b666ae488225b76251750a8cf331be
tree9a431d2db895d6059fe4b29fdaf9edeefe939230
parent0edf60583245cc6f3fd53ddae2f21748a4a1b239
CC Mode: make c-display-defun-name work with a pointer return type.

Fixes bug #32403.

* lisp/progmodes/cc-cmds.el (c-in-function-trailer-p): No longer insist on
c-beginning-of-decl-1 returning 'same.
(c-where-wrt-brace-construct): Tighten up the test for looking at a symbol by
excluding keywords.  When point is after a }, do not return 'at-function-end
for a struct/union/class/...
(c-defun-name-1): Considerably simplify, by amalgamating the two cond arms
which find structs etc., and by using functions like c-forward-declarator
rather than the faulty analysis of the source by hand.
lisp/progmodes/cc-cmds.el