From 2120d3f40f04a26dec38c134ec4a185aaffb5cfd Mon Sep 17 00:00:00 2001 From: mhucka Date: Fri, 20 Nov 2026 03:43:08 +0000 Subject: [PATCH] Make newer `clang-format` versions produce same format In clang-format 22.1.8, the Google style preset sets `DerivePointerAlignment: false` and `PointerAlignment: Left`. This is different from earlier versions of `clang-format`, which defaulted `DerivePointerAlignment` to true for Google). Setting `DerivePointerAlignment: true` in `.clang-format` lets us support both older and newer versions of clang-format. --- .clang-format | 1 + 1 file changed, 1 insertion(+) diff --git a/.clang-format b/.clang-format index 442b91c37..969dd4d5d 100644 --- a/.clang-format +++ b/.clang-format @@ -1,3 +1,4 @@ # Run manually to reformat a file: # clang-format -i --style=file BasedOnStyle: Google +DerivePointerAlignment: true