From: Andreas Beckmann Date: Tue, 15 Mar 2022 14:47:49 +0000 (+0100) Subject: [PATCH 1004/1017] try to apply the LLVM style first X-Git-Tag: archive/raspbian/3.0-6+rpi1~1^2~25 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fb5f20b2bc637c24db4e07dd972de3fd31b1864f;p=pocl.git [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 --- 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."