From e183e266e27bb0d9c47bb254bd0a4007a18d6511 Mon Sep 17 00:00:00 2001 From: Nick Cooke Date: Wed, 27 Aug 2025 10:59:22 -0400 Subject: [PATCH 1/2] fix(ci): Update to clang-format@21 --- CONTRIBUTING.md | 2 +- README.md | 2 +- scripts/setup_check.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0a460cbdd87..2679fbd217e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -132,7 +132,7 @@ To develop Firebase software, **install**: To install [clang-format] and [mint] using [Homebrew]: ```console - brew install clang-format@20 + brew install clang-format@21 brew install mint ``` diff --git a/README.md b/README.md index 6c5168f8bbe..15a560d92f7 100644 --- a/README.md +++ b/README.md @@ -153,7 +153,7 @@ GitHub Actions will verify that any code changes are done in a style-compliant way. Install `clang-format` and `mint`: ```console -brew install clang-format@20 +brew install clang-format@21 brew install mint ``` diff --git a/scripts/setup_check.sh b/scripts/setup_check.sh index 805596a9ae6..faf4715c688 100755 --- a/scripts/setup_check.sh +++ b/scripts/setup_check.sh @@ -35,7 +35,7 @@ fi # install clang-format brew update -brew install clang-format@20 +brew install clang-format@21 # mint installs tools from Mintfile on demand. brew install mint From 0c0993346388cf4fee1639ff14ab86e60db1e4c5 Mon Sep 17 00:00:00 2001 From: Nick Cooke Date: Wed, 27 Aug 2025 11:06:21 -0400 Subject: [PATCH 2/2] style --- scripts/style.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/style.sh b/scripts/style.sh index 72a31312d72..c8c15f5155a 100755 --- a/scripts/style.sh +++ b/scripts/style.sh @@ -56,7 +56,7 @@ version="${version/ (*)/}" version="${version/.*/}" case "$version" in - 20) + 21) ;; google3-trunk) echo "Please use a publicly released clang-format; a recent LLVM release" @@ -65,7 +65,7 @@ case "$version" in exit 1 ;; *) - echo "Please upgrade to clang-format version 20." + echo "Please upgrade to clang-format version 21." echo "If it's installed via homebrew you can run:" echo "brew upgrade clang-format" exit 1