add analysis to clang-format

This commit is contained in:
Denis Rouzaud 2024-12-01 10:33:51 +01:00
parent 9f6f941b44
commit c2d98700a3
3 changed files with 2 additions and 3 deletions

View File

@ -18,7 +18,6 @@ repos:
(?x)^(
src/core/.*|
src/gui/.*|
src/analysis/.*|
src/3d/.*|
src/server/.*|
tests/code_layout/sipify/sipifyheader.h

View File

@ -120,7 +120,7 @@ for f in $MODIFIED; do
esac
# only run astyle on sipified directories, others are handled by clang-format (see .pre-commit-config.yaml)
if [[ $f =~ ^src/(core|gui|analysis|3d|server) ]]; then
if [[ $f =~ ^src/(core|gui|3d|server) ]]; then
m=$f.$REV.prepare
cp "$f" "$m"
ASTYLEPROGRESS=" [$i/$N]" astyle.sh "$f"

View File

@ -40,7 +40,7 @@ for f in $FILES; do
esac
# only run astyle on sipified directories, others are handled by clang-format (see .pre-commit-config.yaml)
if [[ $f =~ ^src/(core|gui|analysis|3d|server) ]]; then
if [[ $f =~ ^src/(core|gui|3d|server) ]]; then
m="$f.prepare"
cp "$f" "$m"
astyle.sh "$f"