[Bf-blender-cvs] [ea9626178cb] temp-clang-format: Clang-format: Indent the constructor initializer
Sergey Sharybin
noreply at git.blender.org
Thu Mar 21 17:11:28 CET 2019
Commit: ea9626178cb2d3ef55a3a0a459cfef032c8a193e
Author: Sergey Sharybin
Date: Thu Mar 21 17:08:11 2019 +0100
Branches: temp-clang-format
https://developer.blender.org/rBea9626178cb2d3ef55a3a0a459cfef032c8a193e
Clang-format: Indent the constructor initializer
Makes it easier to read what is an initialzier and what is the code,
adding some space to the initialization.
===================================================================
M .clang-format
===================================================================
diff --git a/.clang-format b/.clang-format
index d26b568b3f0..1aceeaf62e7 100644
--- a/.clang-format
+++ b/.clang-format
@@ -103,14 +103,14 @@ ColumnLimit: 99
# that all initializers can't fit on a single line.
ConstructorInitializerAllOnOneLineOrOnePerLine: true
-# Don't indent the : after a constructor. For example:
+# Indent the : after a constructor. For example:
#
# explicit foo_class ()
-# : member1_(5)
+# : member1_(5)
# {
# }
#
-ConstructorInitializerIndentWidth: 0
+ConstructorInitializerIndentWidth: 4
# This will unfortunately use spaces in some cases where it's not desired (like
# function calls) but the overall result is better since it will allow
More information about the Bf-blender-cvs
mailing list