Add consteval and constinit keywords to cc-mode
* lisp/progmodes/cc-langs.el (c-modifier-kwds): Add consteval and constinit keywords (introduced in C++20) (bug#51092). Copyright-paperwork-exempt: yes
This commit is contained in:
parent
6a5043e9f6
commit
0f4839fb6e
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue