[PATCH 1004/1017] try to apply the LLVM style first
authorAndreas Beckmann <anbe@debian.org>
Tue, 15 Mar 2022 14:47:49 +0000 (15:47 +0100)
committerAndreas Beckmann <anbe@debian.org>
Thu, 17 Nov 2022 10:14:25 +0000 (10:14 +0000)
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

index 4c48e998a9f8d62290c7f23567cec6303ca5d815..14212934d4d90647764312764092ef5a60aeb52d 100755 (executable)
@@ -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."