Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey@blender.org>2021-10-19 12:46:11 +0300
committerSergey Sharybin <sergey@blender.org>2021-10-19 12:59:26 +0300
commit765eba5a6e0322db7ffdc0fb582f8c9645bbbb6b (patch)
tree4587cd44cb93bd267e43549251eeb51a897e629a /.clang-format
parentabc3128011b484c270701211b40831d11c8ac44b (diff)
Cleanup: More readable Cycles OSL BSDF definition
A Clang-Format configuration to make the closure definition block to be properly recognized as such. Also small wrapper macro to avoid comma in the actual definition code which was causing unwanted indentation of parameters definition. Requires Clang-Format 7 or newer. The version we ship in the libs is 12, so for recommended development setup it should all be good. Differential Revision: https://developer.blender.org/D12920
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format3
1 files changed, 3 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
index 91df22f4d5b..41f828787b2 100644
--- a/.clang-format
+++ b/.clang-format
@@ -268,3 +268,6 @@ ForEachMacros:
StatementMacros:
- PyObject_HEAD
- PyObject_VAR_HEAD
+
+MacroBlockBegin: "^BSDF_CLOSURE_CLASS_BEGIN$"
+MacroBlockEnd: "^BSDF_CLOSURE_CLASS_END$"