diff options
author | Alan Mackenzie <acm@muc.de> | 2022-10-19 14:52:14 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2022-10-19 14:52:14 +0000 |
commit | fb8276a17c26b4c2bf8281210ede114ff9e24958 (patch) | |
tree | 40a9236839bca5717a634eb7d5e5677b4521de21 /test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-define-obsolete-variable-alias.el | |
parent | b96f441139e09d48880e1f20ad4237400529ac5f (diff) | |
download | emacs-fb8276a17c26b4c2bf8281210ede114ff9e24958.tar.gz emacs-fb8276a17c26b4c2bf8281210ede114ff9e24958.tar.bz2 emacs-fb8276a17c26b4c2bf8281210ede114ff9e24958.zip |
CC Mode: Cease adding types to found-types too eagerly
This fixes bug #58537 and bug #58539.
* lisp/progmodes/cc-engine.el (c-forward-type): Remove trailing whitespace
from an identifier before passing it to c-add-type.
(c-forward-decl-or-cast-1): CASE 3: Do not recognize two consecutive
identifiers as type + variable/function unless certain conditions are met.
CASE 10: Do not recognize the "type" as a found type unless certain condtions
are met. (Near end): Do not recognize the identifier in a cast as a type
unless certain conditions are met.
* lisp/progmodes/cc-fonts.el (c-get-fontification-context): Recognize being
in declaration parens when there is a syntactially wrong "foo ((bar))"
preceding the match position.
* lisp/progmodes/cc-mode.el (c-update-new-id): Set c-new-id-is-type
unconditionally to nil to prevent a second identifier being wrongly marked as
a type.
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-define-obsolete-variable-alias.el')
0 files changed, 0 insertions, 0 deletions