added code style uncrustify config

This commit is contained in:
Igor Korsukov 2020-05-26 17:10:31 +02:00
parent 3b775cf7cb
commit 0d515bf33f
5 changed files with 1653 additions and 0 deletions

2
.git-blame-ignore-revs Normal file
View file

@ -0,0 +1,2 @@
# Conversion to new code style
45b9887603f08523f9a663b164bd9f10b85f8b25

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,17 @@
#!/bin/bash
DIR="$1"
SRC_DIRS="aeolus audio audiofile avsomr awl bww2mxml crashreporter effects fonttools global importexport \
libmscore main miditools mscore mtest omr telemetry"
START_TIME=$(date +%s)
for var in $SRC_DIRS
do
bash uncrustify_run_dir.sh $DIR/$var
done
END_TIME=$(date +%s)
DIFF_TIME=$(( $END_TIME - $START_TIME ))
echo "time: $DIFF_TIME sec, complite all"

View file

@ -0,0 +1,14 @@
#!/bin/bash
DIR="$1"
START_TIME=$(date +%s)
find $DIR -type f -regex '.*\.\(cpp\|h\|hpp\|cc\)$' |xargs -n 1 -P 16 \
uncrustify -c uncrustify_musescore.cfg --no-backup -l CPP
END_TIME=$(date +%s)
DIFF_TIME=$(( $END_TIME - $START_TIME ))
echo ""
echo "time: $DIFF_TIME sec, complite: $DIR"
echo ""

View file

@ -0,0 +1,5 @@
#!/bin/bash
FILE="$1"
uncrustify -c uncrustify_musescore.cfg --no-backup -l CPP $FILE