Subject: bug#7405: cc-mode typo between cc-engine and cc-fonts

From: Daniel Colascione <[email-masked]>
Date: Sun, 14 Nov 2010 20:11:27 -0800

Latest trunk.

In cc-fonts.el,

  ;; Skip over type decl prefix operators, one for each iteration
  ;; of the while.  These are, e.g. "*" in "int *foo" or "(" and
  ;; "*" in "int (*foo) (void)" (Note similar code in
  ;; `c-forward-decl-or-cast-1'.)
  (while (and (looking-at c-type-decl-prefix-key)
     (if (and (c-major-mode-is 'c++-mode)
	(match-beginning 3))
	;; If the third submatch matches in C++ then
                  ^^^^^^^^^^^^^^

	;; we're looking at an identifier that's a
	;; prefix only if it specifies a member pointer.

In cc-engine.el,

      ;; Skip over type decl prefix operators.  (Note similar code in
      ;; `c-font-lock-declarators'.)
      (while (and (looking-at c-type-decl-prefix-key)
		  (if (and (c-major-mode-is 'c++-mode)
			   (match-beginning 2))
		      ;; If the second submatch matches in C++ then
                                ^^^^^^^^^^^^^^^^
		      ;; we're looking at an identifier that's a
		      ;; prefix only if it specifies a member pointer.
		      (when (setq got-identifier (c-forward-name))

So which is it?