about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2022-10-26 15:15:37 +0200
committerMichael Vetter <jubalh@iodoru.org>2022-10-26 15:15:37 +0200
commit413b5f9bc9f59a7560fd69862cca47357d30c0cd (patch)
treee1de2d12a36985d7c7e7bc0a8c60311fbdb77f16
parentaa9b96e25cf19c8e5dab3167e8e575916106297b (diff)
downloadprofani-tty-413b5f9bc9f59a7560fd69862cca47357d30c0cd.tar.gz
Work around different clang-format versions
Locally I have clang-format 15.0.2.
Our CI runs ubuntu-20.04 so it has 10.0.

Seems like a default value changed but I can't find it.
When I still had clang-format 14.x everything was fine and checking:
https://releases.llvm.org/15.0.0/tools/clang/docs/ReleaseNotes.html#clang-format

I only see irrelevant things.

Someone on the llvm IRC channel sais "there is no guarantee" and "maybe
a regression or intended change".
But seems like noone knows which setting could be the one we need.

Since I don't have a better solution for now I will just edit this by
hand to apply to the clang-format version we have on the CI.
Will look into updating this one.

But in any case it would be best if the configuration file could have
this setting so formatting works the same for all contributors.
-rw-r--r--src/config/color.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/color.c b/src/config/color.c
index 86e4d656..693bfb8e 100644
--- a/src/config/color.c
+++ b/src/config/color.c
@@ -59,7 +59,7 @@ static struct color_pair_cache
     struct
     {
         int16_t fg, bg;
-    }* pairs;
+    } * pairs;
     int size;
     int capacity;
 } cache = { 0 };