Files
emacs/.dir-locals.el
Basil L. Contovounesios 14c0e69c1d Review some attribute macro usage
* .dir-locals.el (c-noise-macro-names): Remove ANDROID_EXPORT, which
is no longer used.  Add ATTRIBUTE_COLD, ATTRIBUTE_CONST,
ATTRIBUTE_MAY_ALIAS, ATTRIBUTE_NONSTRING, ATTRIBUTE_RETURNS_NONNULL,
EXTERNALLY_VISIBLE, MAYBE_UNUSED, and NODISCARD.
(c-noise-macro-with-parens-names): Also tell cc-mode about some
function-like attribute macros in use (bug#80428).

* src/conf_post.h (RE_TRANSLATE_P): Remove; it is no longer used.
2026-03-14 15:08:15 +01:00

70 lines
3.2 KiB
EmacsLisp

;;; Directory Local Variables -*- no-byte-compile: t; -*-
;;; For more information see (info "(emacs) Directory Variables")
((nil . ((tab-width . 8)
(sentence-end-double-space . t)
(fill-column . 72)
(emacs-lisp-docstring-fill-column . 72)
(vc-git-annotate-switches . "-w")
(bug-reference-url-format . "https://debbugs.gnu.org/%s")
(diff-add-log-use-relative-names . t)
(etags-regen-regexp-alist
.
((("c" "objc") .
("/[ \t]*DEFVAR_[A-Z_ \t(]+\"\\([^\"]+\\)\"/\\1/"
"/[ \t]*DEFVAR_[A-Z_ \t(]+\"[^\"]+\",[ \t]\\([A-Za-z0-9_]+\\)/\\1/"))))
(etags-regen-ignores . ("test/manual/etags/"))
(vc-prepare-patches-separately . nil)
(vc-default-patch-addressee . "bug-gnu-emacs@gnu.org")
;; Uncomment these later once people's builds are likely to know
;; they're safe local variable values.
;; (vc-trunk-branch-regexps . ("master" "\\`emacs-[0-9]+\\'"))
;; (vc-topic-branch-regexps . ("\\`feature/"))
))
(c-mode . ((c-file-style . "GNU")
(c-noise-macro-names
"ALIGN_STACK" "ATTRIBUTE_COLD" "ATTRIBUTE_CONST"
"ATTRIBUTE_DEALLOC_FREE" "ATTRIBUTE_MALLOC" "ATTRIBUTE_MAY_ALIAS"
"ATTRIBUTE_NO_SANITIZE_ADDRESS" "ATTRIBUTE_NO_SANITIZE_UNDEFINED"
"ATTRIBUTE_NONSTRING" "ATTRIBUTE_RETURNS_NONNULL"
"CALLBACK" "EXTERNALLY_VISIBLE"
"INLINE" "INLINE_HEADER_BEGIN" "INLINE_HEADER_END" "NO_INLINE"
"MAYBE_UNUSED" "NODISCARD" "TEST_STATIC" "UNINIT")
(c-noise-macro-with-parens-names
"ARG_NONNULL" "ATTRIBUTE_ALLOC_SIZE"
"ATTRIBUTE_DEALLOC" "ATTRIBUTE_FORMAT_PRINTF"
"ATTRIBUTE_MALLOC_SIZE" "ATTRIBUTE_SECTION"
"EMACS_ATTRIBUTE_NONNULL")
(electric-quote-comment . nil)
(electric-quote-string . nil)
(indent-tabs-mode . t)
(mode . bug-reference-prog)))
(java-mode . ((c-file-style . "GNU")
(electric-quote-comment . nil)
(electric-quote-string . nil)
(indent-tabs-mode . t)
(mode . bug-reference-prog)))
(objc-mode . ((c-file-style . "GNU")
(electric-quote-comment . nil)
(electric-quote-string . nil)
(indent-tabs-mode . t)
(mode . bug-reference-prog)))
(c-ts-mode . ((c-ts-mode-indent-style . gnu))) ;Inherits `c-mode' settings.
(log-edit-mode . ((log-edit-font-lock-gnu-style . t)
(log-edit-setup-add-author . t)
(vc-git-log-edit-summary-target-len . 50)
(fill-column . 64)))
(change-log-mode . ((add-log-time-zone-rule . t)
(fill-column . 74)
(mode . bug-reference)))
(diff-mode . ((mode . whitespace)))
(emacs-lisp-mode . ((indent-tabs-mode . nil)
(electric-quote-comment . nil)
(electric-quote-string . nil)
(mode . bug-reference-prog)))
(lisp-data-mode . ((indent-tabs-mode . nil)))
(texinfo-mode . ((electric-quote-comment . nil)
(electric-quote-string . nil)
(mode . bug-reference-prog)))
(outline-mode . ((mode . bug-reference))))