[Bf-blender-cvs] [aad8f1a41bf] master: Cleanup: use compliant YAML for '.clang-format'

Campbell Barton noreply at git.blender.org
Tue Jan 3 01:54:07 CET 2023


Commit: aad8f1a41bf3c50e657788c39020111c09683253
Author: Campbell Barton
Date:   Tue Jan 3 11:51:40 2023 +1100
Branches: master
https://developer.blender.org/rBaad8f1a41bf3c50e657788c39020111c09683253

Cleanup: use compliant YAML for '.clang-format'

While clang-format could read the configuration file,
it failed to load in `pyyaml` for e.g.

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

M	.clang-format

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

diff --git a/.clang-format b/.clang-format
index 4c140988720..7e67aae1111 100644
--- a/.clang-format
+++ b/.clang-format
@@ -61,17 +61,17 @@ ContinuationIndentWidth: 4
 # This tries to match Blender's style as much as possible. One
 BreakBeforeBraces: Custom
 BraceWrapping: {
-    AfterClass: 'false'
-    AfterControlStatement: 'false'
-    AfterEnum : 'false'
-    AfterFunction : 'true'
-    AfterNamespace : 'false'
-    AfterStruct : 'false'
-    AfterUnion : 'false'
-    BeforeCatch : 'true'
-    BeforeElse : 'true'
-    IndentBraces : 'false'
-    AfterObjCDeclaration: 'true'
+    AfterClass: 'false',
+    AfterControlStatement: 'false',
+    AfterEnum : 'false',
+    AfterFunction : 'true',
+    AfterNamespace : 'false',
+    AfterStruct : 'false',
+    AfterUnion : 'false',
+    BeforeCatch : 'true',
+    BeforeElse : 'true',
+    IndentBraces : 'false',
+    AfterObjCDeclaration: 'true',
 }
 
 # For switch statements, indent the cases.



More information about the Bf-blender-cvs mailing list