[llvm] d0bb76f - [emacs] Highlight 'zeroext' and 'signext' keywords as an attribute
Noah Goldstein via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 6 12:46:51 PDT 2023
Author: Noah Goldstein
Date: 2023-07-06T14:46:34-05:00
New Revision: d0bb76f191c7b306886f4d3e72d7986d5098cc2f
URL: https://github.com/llvm/llvm-project/commit/d0bb76f191c7b306886f4d3e72d7986d5098cc2f
DIFF: https://github.com/llvm/llvm-project/commit/d0bb76f191c7b306886f4d3e72d7986d5098cc2f.diff
LOG: [emacs] Highlight 'zeroext' and 'signext' keywords as an attribute
Seems natural to highlight 'nocapture' along with other attributes
like 'nonnull', 'noundef', etc..
Differential Revision: https://reviews.llvm.org/D154571
Added:
Modified:
llvm/utils/emacs/llvm-mode.el
Removed:
################################################################################
diff --git a/llvm/utils/emacs/llvm-mode.el b/llvm/utils/emacs/llvm-mode.el
index 07aa0b9d031e39..3970a51df5e77f 100644
--- a/llvm/utils/emacs/llvm-mode.el
+++ b/llvm/utils/emacs/llvm-mode.el
@@ -22,12 +22,12 @@
(list
;; Attributes
`(,(regexp-opt
- '("alwaysinline" "argmemonly" "allocsize" "builtin" "cold" "convergent" "dereferenceable" "dereferenceable_or_null" "hot" "inaccessiblememonly"
+ '("alwaysinline" "argmemonly" "allocsize" "builtin" "cold" "convergent" "dereferenceable" "dereferenceable_or_null" "hot" "immarg" "inaccessiblememonly"
"inaccessiblemem_or_argmemonly" "inalloca" "inlinehint" "jumptable" "minsize" "mustprogress" "naked" "nobuiltin" "nonnull" "nocapture"
"nocallback" "nocf_check" "noduplicate" "nofree" "noimplicitfloat" "noinline" "nomerge" "nonlazybind" "noprofile" "noredzone" "noreturn"
"norecurse" "nosync" "noundef" "nounwind" "nosanitize_bounds" "nosanitize_coverage" "null_pointer_is_valid" "optforfuzzing" "optnone" "optsize" "preallocated" "readnone" "readonly" "returned" "returns_twice"
- "shadowcallstack" "speculatable" "speculative_load_hardening" "ssp" "sspreq" "sspstrong" "safestack" "sanitize_address" "sanitize_hwaddress" "sanitize_memtag"
- "sanitize_thread" "sanitize_memory" "strictfp" "swifterror" "uwtable" "vscale_range" "willreturn" "writeonly" "immarg") 'symbols) . font-lock-constant-face)
+ "shadowcallstack" "signext" "speculatable" "speculative_load_hardening" "ssp" "sspreq" "sspstrong" "safestack" "sanitize_address" "sanitize_hwaddress" "sanitize_memtag"
+ "sanitize_thread" "sanitize_memory" "strictfp" "swifterror" "uwtable" "vscale_range" "willreturn" "writeonly" "zeroext") 'symbols) . font-lock-constant-face)
;; Variables
'("%[-a-zA-Z$._][-a-zA-Z$._0-9]*" . font-lock-variable-name-face)
;; Labels
More information about the llvm-commits
mailing list