diff options
| author | Evan Klitzke | 2022-09-14 14:32:29 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-09-14 14:33:12 +0200 |
| commit | 0f4839fb6e17b193a67dcb089fb8ff15138a4129 (patch) | |
| tree | 5f03a340f443834bba6c26a22f48d9f5d221424c | |
| parent | 6a5043e9f6dc8120f82d13ebde976df5f0a2ea73 (diff) | |
| download | emacs-0f4839fb6e17b193a67dcb089fb8ff15138a4129.tar.gz emacs-0f4839fb6e17b193a67dcb089fb8ff15138a4129.zip | |
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
| -rw-r--r-- | lisp/progmodes/cc-langs.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el index 068b4a65b21..bf7eee22834 100644 --- a/lisp/progmodes/cc-langs.el +++ b/lisp/progmodes/cc-langs.el | |||
| @@ -2594,8 +2594,8 @@ will be handled." | |||
| 2594 | t nil | 2594 | t nil |
| 2595 | (c c++) '("extern" "inline" "register" "static") | 2595 | (c c++) '("extern" "inline" "register" "static") |
| 2596 | c (append '("auto") (c-lang-const c-modifier-kwds)) | 2596 | c (append '("auto") (c-lang-const c-modifier-kwds)) |
| 2597 | c++ (append '("constexpr" "explicit" "friend" "mutable" "template" | 2597 | c++ (append '("consteval" "constexpr" "constinit" "explicit" |
| 2598 | "thread_local" "virtual") | 2598 | "friend" "mutable" "template" "thread_local" "virtual") |
| 2599 | ;; "using" is now handled specially (2020-09-14). | 2599 | ;; "using" is now handled specially (2020-09-14). |
| 2600 | (c-lang-const c-modifier-kwds)) | 2600 | (c-lang-const c-modifier-kwds)) |
| 2601 | objc '("auto" "bycopy" "byref" "extern" "in" "inout" "oneway" "out" "static") | 2601 | objc '("auto" "bycopy" "byref" "extern" "in" "inout" "oneway" "out" "static") |