From e403403b39113b625d67473691949df85d506bda Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Fri, 8 Mar 2019 14:04:31 +0100 Subject: Update clang-format config Set column width to 100 as described in the official Qt coding style (https://wiki.qt.io/Qt_Coding_Style). Also, break constructor initializers before the colon and after the commas. Change-Id: I6ac5a21ce831a35a0d74e699192ba981c8a8ba3c Reviewed-by: Frederik Gladhorn --- _clang-format | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '_clang-format') diff --git a/_clang-format b/_clang-format index ee000a1e..4cdda2fb 100644 --- a/_clang-format +++ b/_clang-format @@ -15,7 +15,7 @@ Standard: Cpp11 # Leave the line breaks up to the user. # Note that this may be changed at some point in the future. -ColumnLimit: 0 +ColumnLimit: 100 # How much weight do extra characters after the line length limit have. # PenaltyExcessCharacter: 4 @@ -77,4 +77,5 @@ SortIncludes: false # macros for which the opening brace stays attached. ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH, forever, Q_FOREVER, QBENCHMARK, QBENCHMARK_ONCE ] - +# Break constructor initializers before the colon and after the commas. +BreakConstructorInitializers: BeforeColon -- cgit v1.2.3