From 814f54fe34dac08ecd3251e01c043f04188a883d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Fri, 19 Sep 2025 13:22:01 +0200 Subject: [PATCH] Format files in-place so the changes can be viewed with `git diff` --- scripts/check-code-formatting | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/check-code-formatting b/scripts/check-code-formatting index 1911dc333e..32219a42df 100755 --- a/scripts/check-code-formatting +++ b/scripts/check-code-formatting @@ -16,4 +16,5 @@ fi basedir="$($readlink_bin -f `dirname $0`/..)" cd $basedir -scripts/run-clang-format.py --clang-format-executable /usr/lib/llvm20/bin/clang-format -r src test data/shaders --exclude src/thirdparty --extensions "c,h,C,H,cpp,hpp,cc,hh,c++,h++,cxx,hxx,vert,frag,mm" +scripts/run-clang-format.py -i --clang-format-executable /usr/lib/llvm20/bin/clang-format -r src test data/shaders --exclude src/thirdparty --extensions "c,h,C,H,cpp,hpp,cc,hh,c++,h++,cxx,hxx,vert,frag,mm" +git diff --exit-code