Selaa lähdekoodia

fix(ci): Update to clang-format@21 (#15260)

Nick Cooke 7 kuukautta sitten
vanhempi
sitoutus
b70b4112f2
4 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  1. 1 1
      CONTRIBUTING.md
  2. 1 1
      README.md
  3. 1 1
      scripts/setup_check.sh
  4. 2 2
      scripts/style.sh

+ 1 - 1
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
     ```
 

+ 1 - 1
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
 ```
 

+ 1 - 1
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

+ 2 - 2
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