Commit graph

10 commits

Author SHA1 Message Date
Gerd Möllmann
8dbc74084b ; Configure ObjC for clang-format 2023-10-06 16:52:19 +02:00
dickmao
a67ed9a403 ; Fix typo in .clang-format (Bug#59768) 2022-12-02 13:52:21 +01:00
Vibhav Pant
1abda0c839
; Make clang-format format indent preprocessor blocks correctly. 2022-11-30 23:07:44 +05:30
Vibhav Pant
7d5cf08de9
; .clang-format: Support macros in comp.c, align operands correctly.
* .clang-format (WhitespaceSensitiveMacros): Add comp.c macros that
stringify arguments, telling clang-format to not format them.
(AlignOperands): Set to Align, to make clang-format correctly align
multi-line expressions involving binary and ternary expressions.
(ForEachMacros): Add FOR_EACH_ALIST_VALUE.
2022-11-15 20:18:44 +05:30
Matt Armstrong
a0d08878f1 ; Make clang-format handle FOR_EACH_LIVE_BUFFER
* .clang-format (ForEachMacros): Add
FOR_EACH_LIVE_BUFFER.  (Bug#59027)
2022-11-05 01:47:17 +01:00
Matt Armstrong
18c184d6d9 Configure clang-format to use tabs
* .clang-format (UseTab): Set to "Always", to match
the (indent-tabs-mode . t) in .dir-locals.el.  (Bug#59027)
2022-11-05 01:46:40 +01:00
Matt Armstrong
034d504158 ; * .clang-format: Add ITREE_FOREACH. 2022-10-11 20:43:39 -07:00
Philipp Stephani
27a023d029 * .clang-format: Fix base style. 2021-01-23 19:04:53 +01:00
Philipp Stephani
773f9eb467 * .clang-format (ColumnLimit): Fix line length. 2020-12-23 17:34:26 +01:00
Philipp Stephani
108df97bf7 Add configuration for clang-format.
This allows developers to auto-format the C code with clang-format.
It’s not 100% accurate, but works pretty well for most of the C code.
2017-09-24 10:47:11 +02:00