From 36046ce7d97860a60efde487362bd925bcc80e55 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 16 Nov 2020 00:11:50 +0000 Subject: 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. --- .clang-format | 1 + 1 file changed, 1 insertion(+) (limited to '.clang-format') 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 -- cgit v1.2.3