]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): check type-start
authorAlan Mackenzie <acm@muc.de>
Mon, 18 Oct 2021 16:49:19 +0000 (16:49 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 18 Oct 2021 16:53:19 +0000 (16:53 +0000)
Check type-start is non-nil at L659 of the function.

lisp/progmodes/cc-engine.el

index 20cdb72ccf14eba95e02b5e70682f4f69cb65aef..c42c95764a21603396f0566a0123e9fdd2de44c7 100644 (file)
@@ -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))))