2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-01 09:50:54 +00:00
qpdf/.dir-locals.el
Jay Berkenbilt f20fa61eb4 Add .clang-format and .dir-locals.el files to set coding style
Configure emacs and clang-format 15 to the coding style I am choosing
for qpdf.
2022-04-04 08:10:40 -04:00

39 lines
1.0 KiB
EmacsLisp

((nil . ((indent-tabs-mode . t)
(qpdf-cc-style
.
("qpdf"
(c-basic-offset . 4)
(c-comment-only-line-offset . 0)
(c-offsets-alist
(defun-block-intro . +)
(block-open . 0)
(substatement-open . 0)
(statement-cont . +)
(case-label . 0)
(access-label . -2)
(statement-case-intro . +)
(statement-case-open . +)
(arglist-intro . +)
(arglist-close . 0)
(inline-open . 0)
(inlambda . 0)
)
)
)
(c-noise-macro-names . ("QPDF_DLL" "QPDF_DLL_CLASS" "QPDF_DLL_LOCAL"))
)
)
(c++-mode . ((eval . (progn
(add-to-list 'c-style-alist qpdf-cc-style)
(c-set-style "qpdf")
)
))
)
(c-mode . ((eval . (progn
(add-to-list 'c-style-alist qpdf-cc-style)
(c-set-style "qpdf")
)
))
)
)