From fb5f20b2bc637c24db4e07dd972de3fd31b1864f Mon Sep 17 00:00:00 2001 From: Andreas Beckmann Date: Tue, 15 Mar 2022 15:47:49 +0100 Subject: [PATCH] [PATCH 1004/1017] try to apply the LLVM style first otherwise lib/llvmopencl/.*\.h get reformatted with GNU style Gbp-Pq: Name 1004-try-to-apply-the-LLVM-style-first.patch --- tools/scripts/format-last-commit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/scripts/format-last-commit.sh b/tools/scripts/format-last-commit.sh index 4c48e99..1421293 100755 --- a/tools/scripts/format-last-commit.sh +++ b/tools/scripts/format-last-commit.sh @@ -19,8 +19,8 @@ git show -U0 --no-color >$PATCHY SCRIPTPATH=$( realpath "$0" ) RELPATH=$(dirname "$SCRIPTPATH") +$RELPATH/clang-format-diff.py -regex '(.*(\.hpp$|\.cc$))|(lib/llvmopencl/.*\.h)' -i -p1 -style LLVM <$PATCHY $RELPATH/clang-format-diff.py -regex '.*(\.h$|\.c$|\.cl$)' -i -p1 -style GNU <$PATCHY -$RELPATH/clang-format-diff.py -regex '(.*(\.hh$|\.cc$))|(lib/llvmopencl/.*\.h)' -i -p1 -style LLVM <$PATCHY if [ -z "$(git diff)" ]; then echo "No changes." -- 2.30.2