From 93972c8910081821d0c8361ba2a05c8af819b54d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 1 Apr 2021 11:11:09 +1100 Subject: 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. --- .clang-format | 9 +++------ 1 file 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 -- cgit v1.2.3