[llvm] 755a73c - [emacs] Highlight 'nocapture' keyword as an attribute

Noah Goldstein via llvm-commits llvm-commits at lists.llvm.org
Mon May 29 00:15:36 PDT 2023


Author: Noah Goldstein
Date: 2023-05-29T02:15:25-05:00
New Revision: 755a73cd6f91386eba3f8807f875ff69ab1b1411

URL: https://github.com/llvm/llvm-project/commit/755a73cd6f91386eba3f8807f875ff69ab1b1411
DIFF: https://github.com/llvm/llvm-project/commit/755a73cd6f91386eba3f8807f875ff69ab1b1411.diff

LOG: [emacs] Highlight 'nocapture' keyword as an attribute

Seems natural to highlight 'nocapture' along with other attributes
like 'nonnull', 'noundef', etc..

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D151639

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 bc8dd2f12d2f8..07aa0b9d031e3 100644
--- a/llvm/utils/emacs/llvm-mode.el
+++ b/llvm/utils/emacs/llvm-mode.el
@@ -23,7 +23,7 @@
    ;; Attributes
    `(,(regexp-opt
        '("alwaysinline" "argmemonly" "allocsize" "builtin" "cold" "convergent" "dereferenceable" "dereferenceable_or_null" "hot" "inaccessiblememonly"
-         "inaccessiblemem_or_argmemonly" "inalloca" "inlinehint" "jumptable" "minsize" "mustprogress" "naked" "nobuiltin" "nonnull"
+         "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"


        


More information about the llvm-commits mailing list