1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00
Commit Graph

8 Commits

Author SHA1 Message Date
Lennart Poettering
4a90c12f4f clang-format: we actually typically use 16ch continuation indentation
We use 8 for blocks, and 16 for continuation in most cases afaics, hence
say so in .clang-format too

(cherry picked from commit 92148fb777)
2022-03-05 21:03:32 +00:00
Daan De Meyer
36046ce7d9 clang-format: set SpaceBeforeParens to ControlStatementsExceptForEachMacros
I contributed this option to LLVM a while ago to reduce the amount of
changes clang-format makes when formatting systemd source files. As
LLVM 11 is now starting to becomes widely available, let's configure
it in the clang-format config.
2020-11-16 16:57:51 +09:00
Zbigniew Jędrzejewski-Szmek
03b62851a9 Remove FOREACH_WORD and friends 2020-09-09 09:34:55 +02:00
Norbert Lange
d3f45d130e clang-format: set Break afer enum to false
if set to true, the opening bracket will be moved to the next line.
2020-07-19 15:44:04 +02:00
szb512
60b45a80c1 Update .clang-format 2020-07-13 18:08:09 +02:00
szb512
5b72b34708 Make the instructions slightly easier to read 2020-07-13 18:08:09 +02:00
Norbert Lange
84cb27086f Improve help for clang-format
The comments lack the most important usecase: fixing up your commits.
2020-04-25 09:39:31 +02:00
Sebastian Jennen
f3a604e4cf Add .clang-format file
The result of automatic formatting is not perfect, but if someone uses an
editor that uses that, it's probably better than nothing.

Fixes #15415.

[zjs: I resurrected this patch from #11811 and edited the extended comment
heavily.]
2020-04-17 15:54:17 +02:00