[Bf-blender-cvs] [45bc12f5b44] temp-clang-format: Clang-format: half-indent access modifier

Sergey Sharybin noreply at git.blender.org
Thu Mar 21 17:11:30 CET 2019


Commit: 45bc12f5b44eced6e0205fd706d0ba1e4d276cbe
Author: Sergey Sharybin
Date:   Thu Mar 21 17:09:25 2019 +0100
Branches: temp-clang-format
https://developer.blender.org/rB45bc12f5b44eced6e0205fd706d0ba1e4d276cbe

Clang-format: half-indent access modifier

We definitely shouldn't use a regular indent for it.

The half one (which is a single space in this case) might
not be so well visible, but kind of helps reading that it
is inside a class.

===================================================================

M	.clang-format

===================================================================

diff --git a/.clang-format b/.clang-format
index 1aceeaf62e7..ea1169ae41d 100644
--- a/.clang-format
+++ b/.clang-format
@@ -112,6 +112,9 @@ ConstructorInitializerAllOnOneLineOrOnePerLine: true
 #
 ConstructorInitializerIndentWidth: 4
 
+# Make access modifier slightly more visible.
+AccessModifierOffset: -1
+
 # 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
 # alignment to work properly with different tab width settings.



More information about the Bf-blender-cvs mailing list