From: Alan Mackenzie Date: Mon, 18 Oct 2021 16:49:19 +0000 (+0000) Subject: * lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): check type-start X-Git-Tag: emacs-28.0.90~257 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8e8a9202469d568b18ea97319e5627fefd833c0b;p=emacs.git * lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): check type-start Check type-start is non-nil at L659 of the function. --- diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index 20cdb72ccf1..c42c95764a2 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el @@ -10409,6 +10409,7 @@ This function might do hidden buffer changes." ;; are directly inside a class (etc.) called "bar". (save-excursion (and + type-start (progn (goto-char name-start) (not (memq (c-forward-type) '(nil maybe))))