aboutsummaryrefslogtreecommitdiffstats
path: root/_clang-format
diff options
context:
space:
mode:
Diffstat (limited to '_clang-format')
-rw-r--r--_clang-format8
1 files changed, 5 insertions, 3 deletions
diff --git a/_clang-format b/_clang-format
index ff57c819..589baff3 100644
--- a/_clang-format
+++ b/_clang-format
@@ -13,9 +13,10 @@ BasedOnStyle: WebKit
Standard: Cpp11
-# Leave the line breaks up to the user.
+# Column width is limited to 100 in accordance with Qt Coding Style.
+# https://wiki.qt.io/Qt_Coding_Style
# 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 +78,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