CC Mode: Only recognize foo (*bar) as a function pointer when followed by (
* lisp/progmodes/cc-engine.el (c-forward-over-decl-or-cast-1): (after CASE 2) test variables got-suffix-after-parens and at-decl-end before invoking c-fdoc-shift-type-backward.
This commit is contained in:
parent
85d1d8d768
commit
8abce5b0c6
1 changed files with 3 additions and 2 deletions
|
@ -9858,8 +9858,9 @@ This function might do hidden buffer changes."
|
||||||
(throw 'at-decl-or-cast t))
|
(throw 'at-decl-or-cast t))
|
||||||
|
|
||||||
(when (and got-parens
|
(when (and got-parens
|
||||||
(not got-function-name-prefix)
|
(or (not got-function-name-prefix)
|
||||||
;; (not got-suffix-after-parens)
|
(and (not got-suffix-after-parens)
|
||||||
|
at-decl-end))
|
||||||
(or backup-at-type
|
(or backup-at-type
|
||||||
maybe-typeless
|
maybe-typeless
|
||||||
backup-maybe-typeless
|
backup-maybe-typeless
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue