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:
authorCampbell Barton <ideasman42@gmail.com>2021-04-01 03:11:09 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-04-01 03:18:05 +0300
commit93972c8910081821d0c8361ba2a05c8af819b54d (patch)
tree045a702d4f30d0b7bee0951ef567faf54c53905e /.clang-format
parenta641e08227a5bd98cb67e82d5503311719236b50 (diff)
Clang Format: bump the minimum version to 8
Make use of `StatementMacros` so Python structs are formatted correctly. The comment about STRINGIFY doesn't seem to be valid anymore, so this has been left out.
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format9
1 files changed, 3 insertions, 6 deletions
diff --git a/.clang-format b/.clang-format
index 9f3e37dea56..b61ce6018d3 100644
--- a/.clang-format
+++ b/.clang-format
@@ -2,7 +2,7 @@
# Configuration of clang-format
# =============================
#
-# Tested to work with versions: 6 to 8.
+# Tested to work with versions: 8 to 11.
# This causes parameters on continuations to align to the opening brace.
#
@@ -263,8 +263,5 @@ ForEachMacros:
- MAP_SLOT_PROBING_BEGIN
- VECTOR_SET_SLOT_PROBING_BEGIN
-# Use once we bump the minimum version to version 8.
-# # Without this string literals that in-line 'STRINGIFY' behave strangely (a bug?).
-# StatementMacros:
-# - PyObject_VAR_HEAD
-# - STRINGIFY
+StatementMacros:
+ - PyObject_VAR_HEAD