summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2019-03-08 14:04:31 +0100
committerFrederik Gladhorn <frederik.gladhorn@qt.io>2019-03-08 13:53:33 +0000
commite403403b39113b625d67473691949df85d506bda (patch)
tree3c6302c10712c87ac9247d144cef7a84fb1cfcf4
parentec772e3e4a9fcf36fa1bb06c89fadc0fc32c338b (diff)
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 <frederik.gladhorn@qt.io>
-rw-r--r--_clang-format5
1 files changed, 3 insertions, 2 deletions
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