diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2020-11-16 01:11:50 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-11-16 08:57:51 +0100 |
commit | 36046ce7d97860a60efde487362bd925bcc80e55 (patch) | |
tree | 22a22c15b245bcd23112f69ae7d8cf39632839cc /.clang-format | |
parent | networkd: fix default value of DHCPv6Client (diff) | |
download | systemd-36046ce7d97860a60efde487362bd925bcc80e55.tar.xz systemd-36046ce7d97860a60efde487362bd925bcc80e55.zip |
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.
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format index 8e5cfca535..651249c701 100644 --- a/.clang-format +++ b/.clang-format @@ -118,6 +118,7 @@ PenaltyBreakString: 0 PenaltyExcessCharacter: 10 PenaltyReturnTypeOnItsOwnLine: 100 SpaceAfterCStyleCast: true +SpaceBeforeParens: ControlStatementsExceptForEachMacros SpacesInAngles: true TabWidth: 8 UseCRLF: false |