ci: split clang-format list of folders for easier maintenance
authorEric Engestrom <eric@igalia.com>
Fri, 26 May 2023 11:41:41 +0000 (12:41 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 26 May 2023 16:04:57 +0000 (16:04 +0000)
Signed-off-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23258>

.gitlab-ci/test/gitlab-ci.yml

index fb71524..9832fa0 100644 (file)
@@ -42,7 +42,9 @@ clang-format:
     LLVM_VERSION: 15
   script:
     - shopt -s globstar
-    - clang-format-${LLVM_VERSION:?} --Werror --dry-run src/**/{asahi,panfrost}/**/*.{h,c,cpp}
+    - clang-format-${LLVM_VERSION:?} --Werror --dry-run
+      src/**/asahi/**/*.{h,c,cpp}
+      src/**/panfrost/**/*.{h,c,cpp}
 
 .test-gl:
   extends: