]> git.eshelyaron.com Git - emacs.git/commitdiff
Add consteval and constinit keywords to cc-mode
authorEvan Klitzke <evan@eklitzke.org>
Wed, 14 Sep 2022 12:32:29 +0000 (14:32 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 14 Sep 2022 12:33:12 +0000 (14:33 +0200)
* lisp/progmodes/cc-langs.el (c-modifier-kwds): Add consteval and
constinit keywords (introduced in C++20) (bug#51092).

Copyright-paperwork-exempt: yes

lisp/progmodes/cc-langs.el

index 068b4a65b211d683f0adf5b2bc2106c9a8e589fd..bf7eee22834465cd2f243dedb96b4149755fbdc1 100644 (file)
@@ -2594,8 +2594,8 @@ will be handled."
   t    nil
   (c c++) '("extern" "inline" "register" "static")
   c    (append '("auto") (c-lang-const c-modifier-kwds))
-  c++  (append '("constexpr" "explicit" "friend" "mutable" "template"
-                "thread_local" "virtual")
+  c++  (append '("consteval" "constexpr" "constinit" "explicit"
+                "friend" "mutable" "template" "thread_local" "virtual")
               ;; "using" is now handled specially (2020-09-14).
               (c-lang-const c-modifier-kwds))
   objc '("auto" "bycopy" "byref" "extern" "in" "inout" "oneway" "out" "static")