From: Daan De Meyer Date: Mon, 16 Nov 2020 00:11:50 +0000 (+0000) Subject: clang-format: set SpaceBeforeParens to ControlStatementsExceptForEachMacros X-Git-Tag: v247~77 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=36046ce7d97860a60efde487362bd925bcc80e55;p=thirdparty%2Fsystemd.git 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. --- diff --git a/.clang-format b/.clang-format index 8e5cfca535e..651249c701b 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