[Bf-blender-cvs] [e7aab7d4aa0] temp-clang-format: clang-format: Add FixNamespaceComments

Campbell Barton noreply at git.blender.org
Mon Jan 14 07:14:32 CET 2019


Commit: e7aab7d4aa0abca47ee26d20ca14cc0f817f6e88
Author: Campbell Barton
Date:   Mon Jan 14 12:17:30 2019 +1100
Branches: temp-clang-format
https://developer.blender.org/rBe7aab7d4aa0abca47ee26d20ca14cc0f817f6e88

clang-format: Add FixNamespaceComments

Generally useful hint.

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

M	.clang-format

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

diff --git a/.clang-format b/.clang-format
index 60876123251..e1808a6123c 100644
--- a/.clang-format
+++ b/.clang-format
@@ -142,6 +142,9 @@ BreakBeforeTernaryOperators: false
 
 SpaceAfterTemplateKeyword: false
 
+# Handy comment at the end of each C++ name space.
+FixNamespaceComments: true
+
 # Use "if (...)" instead of "if(...)", but have function calls like foo().
 SpaceBeforeParens: ControlStatements
 SpaceInEmptyParentheses: false
@@ -152,7 +155,8 @@ SpaceInEmptyParentheses: false
 #
 SpacesBeforeTrailingComments: 2
 
-# Don't reflow comments, let developers define line breaks
+# Don't reflow comments, let developers define line breaks.
+# Enabling breaks some ascii art.
 ReflowComments: false
 
 # Never use tabs for indentation.



More information about the Bf-blender-cvs mailing list