From: Matthias Maier Date: Wed, 30 May 2018 01:34:06 +0000 (-0500) Subject: tweak .clang-format file X-Git-Tag: v9.1.0-rc1~1043^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=939e5931802736285d57c812c48f60a4b7281482;p=dealii.git tweak .clang-format file --- diff --git a/.clang-format b/.clang-format index 1a12089693..ca45b6a77c 100644 --- a/.clang-format +++ b/.clang-format @@ -45,14 +45,13 @@ BreakBeforeBinaryOperators: None BreakBeforeBraces: Custom BreakBeforeInheritanceComma: false BreakBeforeTernaryOperators: false -BreakConstructorInitializers: AfterColon +BreakConstructorInitializers: BeforeComma BreakStringLiterals: false ColumnLimit: 80 CompactNamespaces: false -ConstructorInitializerAllOnOneLineOrOnePerLine: true ConstructorInitializerIndentWidth: 2 ContinuationIndentWidth: 2 @@ -141,6 +140,8 @@ MaxEmptyLinesToKeep: 3 NamespaceIndentation: All +PenaltyBreakBeforeFirstCallParameter: 90 + PointerAlignment: Right ReflowComments: true diff --git a/examples/.clang-format b/examples/.clang-format index cd10459874..f62aa53af4 100644 --- a/examples/.clang-format +++ b/examples/.clang-format @@ -47,14 +47,13 @@ BreakBeforeBinaryOperators: None BreakBeforeBraces: Custom BreakBeforeInheritanceComma: false BreakBeforeTernaryOperators: false -BreakConstructorInitializers: AfterColon +BreakConstructorInitializers: BeforeComma BreakStringLiterals: false ColumnLimit: 80 CompactNamespaces: false -ConstructorInitializerAllOnOneLineOrOnePerLine: true ConstructorInitializerIndentWidth: 2 ContinuationIndentWidth: 2 @@ -79,6 +78,8 @@ MaxEmptyLinesToKeep: 3 NamespaceIndentation: All +PenaltyBreakBeforeFirstCallParameter: 90 + PointerAlignment: Right ReflowComments: true