diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-04-02 23:13:36 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-04-04 14:10:40 +0200 |
commit | f20fa61eb4c323eb1642c69c236b3d9a1f8b2cdb (patch) | |
tree | b9245b78632c60a9922347a53a8e9937bb5f52c5 /.dir-locals.el | |
parent | 97fc98901cc2dcfa3e1903374cb9040e93fd142f (diff) | |
download | qpdf-f20fa61eb4c323eb1642c69c236b3d9a1f8b2cdb.tar.zst |
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.
Diffstat (limited to '.dir-locals.el')
-rw-r--r-- | .dir-locals.el | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 00000000..d3c0b626 --- /dev/null +++ b/.dir-locals.el @@ -0,0 +1,38 @@ +((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") + ) + )) + ) +) |