[emacs] Highlight 'nocapture' keyword as an attribute
authorNoah Goldstein <goldstein.w.n@gmail.com>
Mon, 29 May 2023 07:15:07 +0000 (02:15 -0500)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Mon, 29 May 2023 07:15:25 +0000 (02:15 -0500)
Seems natural to highlight 'nocapture' along with other attributes
like 'nonnull', 'noundef', etc..

Reviewed By: nikic

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

llvm/utils/emacs/llvm-mode.el

index bc8dd2f..07aa0b9 100644 (file)
@@ -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"