summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2020-11-16 00:11:50 +0000
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-11-16 16:57:51 +0900
commit36046ce7d97860a60efde487362bd925bcc80e55 (patch)
tree22a22c15b245bcd23112f69ae7d8cf39632839cc /.clang-format
parentcabe57119f07a9f86ab281f6260bbb006b89a854 (diff)
downloadsystemd-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.
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format1
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