CC Mode: Move the handling of keyword auto into type handling for C++.
authorAlan Mackenzie <acm@muc.de>
Thu, 8 Oct 2020 16:49:49 +0000 (16:49 +0000)
committerAlan Mackenzie <acm@muc.de>
Thu, 8 Oct 2020 16:49:49 +0000 (16:49 +0000)
commit81fe8990c0e4c0980e599b6ec9cad6dcb945275a
tree2530782024acb7753ecfb655e05a7023865de96e
parentc7804ac4018fb03787f291d7ef1739b34914d930
CC Mode: Move the handling of keyword auto into type handling for C++.

This should allow auto, const, static, ... to be in any order.

* lisp/progmodes/cc-engine.el (c-forward-type): New return value 'no-id for
when auto precludes the parsing of a type identifier.  Adapt processing for
this.
(c-forward-decl-or-cast-1): Use the new facility from c-forward-type.

* lisp/progmodes/cc-langs.el (c-type-modifier-prefix-kwds): Insert the value
of c-no-type-kwds into the value.
(c-no-type-kwds, c-no-type-key): New lang consts/vars, basically "auto".
(c-typeless-decl-kwds, c-modifier-kwds): Remove "auto" from the C++ value.
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-langs.el