[c][cpp] Formatter pass.

This commit is contained in:
Mario Zechner 2022-03-25 13:31:58 +01:00
parent 7cf42c814b
commit 2022713bd2
25 changed files with 70 additions and 68 deletions

View File

@ -26,7 +26,7 @@ spotless {
'spine-sfml/**/*.h', 'spine-sfml/**/*.h',
'spine-ue4/**/*.cpp', 'spine-ue4/**/*.cpp',
'spine-ue4/**/*.h' 'spine-ue4/**/*.h'
clangFormat("12.0.1").pathToExe("$System.env.CLANGFORMAT").style('file') clangFormat("13.0.1").pathToExe("$System.env.CLANGFORMAT").style('file')
} }
typescript { typescript {

View File

@ -28,9 +28,11 @@ setup
# Execute spotless and dotnet-format # Execute spotless and dotnet-format
pushd $dir/.. pushd $dir/..
./formatters/gradlew spotlessApply ./formatters/gradlew spotlessApply
if [ "$1" != "skipdotnet" ] ; then
dotnet-format spine-csharp/spine-csharp.sln dotnet-format spine-csharp/spine-csharp.sln
dotnet-format -f spine-monogame dotnet-format -f spine-monogame
dotnet-format -f spine-unity dotnet-format -f spine-unity
fi
popd popd
# Delete Gradle, dotnet-format, and clang-format config files in root # Delete Gradle, dotnet-format, and clang-format config files in root

View File

@ -101,7 +101,7 @@ static char *string_append(char *str, const char *b) {
} }
static char *string_append_int(char *str, int value) { static char *string_append_int(char *str, int value) {
char intStr[20];; char intStr[20];
sprintf(intStr, "%i", value); sprintf(intStr, "%i", value);
return string_append(str, intStr); return string_append(str, intStr);
} }