added code style uncrustify config
This commit is contained in:
parent
3b775cf7cb
commit
0d515bf33f
5 changed files with 1653 additions and 0 deletions
2
.git-blame-ignore-revs
Normal file
2
.git-blame-ignore-revs
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Conversion to new code style
|
||||
45b9887603f08523f9a663b164bd9f10b85f8b25
|
1615
tools/codestyle/uncrustify_musescore.cfg
Normal file
1615
tools/codestyle/uncrustify_musescore.cfg
Normal file
File diff suppressed because it is too large
Load diff
17
tools/codestyle/uncrustify_run.sh
Executable file
17
tools/codestyle/uncrustify_run.sh
Executable 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"
|
14
tools/codestyle/uncrustify_run_dir.sh
Executable file
14
tools/codestyle/uncrustify_run_dir.sh
Executable 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 ""
|
5
tools/codestyle/uncrustify_run_file.sh
Executable file
5
tools/codestyle/uncrustify_run_file.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
FILE="$1"
|
||||
|
||||
uncrustify -c uncrustify_musescore.cfg --no-backup -l CPP $FILE
|
Loading…
Reference in a new issue