diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2020-11-16 00:11:50 +0000 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-11-16 16:57:51 +0900 |
commit | 36046ce7d97860a60efde487362bd925bcc80e55 (patch) | |
tree | 22a22c15b245bcd23112f69ae7d8cf39632839cc | |
parent | cabe57119f07a9f86ab281f6260bbb006b89a854 (diff) | |
download | systemd-36046ce7d97860a60efde487362bd925bcc80e55.tar.gz |
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.
-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 |