]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Handle C++20's if consteval
authorAlan Mackenzie <acm@muc.de>
Tue, 26 Mar 2024 20:59:43 +0000 (20:59 +0000)
committerEshel Yaron <me@eshelyaron.com>
Wed, 27 Mar 2024 20:38:47 +0000 (21:38 +0100)
commit8b9d8fa22c6d54b03fda28ade7a4c3007b263375
treef4a1090f5fa1945dd92aff9214777d8aee834906
parent6a695e14a1bf32d1733a7decb9263da8355ad74e
CC Mode: Handle C++20's if consteval

* lisp/progmodes/cc-engine.el (c-after-conditional): Handle the
new keyword in place of a paren sexp after `if'.

* lisp/progmodes/cc-langs.el (c-negation-op-re)
(c-paren-clause-kwds, c-paren-clause-key)
(c-block-stmt-with-kwds, c-block-stmt-with-key): New
lang-consts/vars.

* if-11.cc, if-11.res: New test files.

(cherry picked from commit ed85132740b39c147647be1831abb64a3f514d57)
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-langs.el