diff --git a/toonz/sources/.clang-format b/toonz/sources/.clang-format new file mode 100644 index 0000000..f1dcf57 --- /dev/null +++ b/toonz/sources/.clang-format @@ -0,0 +1,14 @@ +BasedOnStyle: Google +Standard: C++11 +UseTab: Never +AccessModifierOffset: -2 +AlignAfterOpenBracket: true +AlignConsecutiveAssignments: true +AlignEscapedNewlinesLeft: false +AlignTrailingComments: true +IndentCaseLabels: false +BreakConstructorInitializersBeforeComma: true +PointerAlignment: Left +SortIncludes: false + + diff --git a/toonz/sources/beautification.bat b/toonz/sources/beautification.bat new file mode 100644 index 0000000..46134aa --- /dev/null +++ b/toonz/sources/beautification.bat @@ -0,0 +1,5 @@ +@echo off + +for /R %%F in (*.cpp;*.hpp;*.c;*.h) do ( + clang-format -i "%%F" +) diff --git a/toonz/sources/beautification.sh b/toonz/sources/beautification.sh new file mode 100644 index 0000000..1d6939b --- /dev/null +++ b/toonz/sources/beautification.sh @@ -0,0 +1,2 @@ +#!/bin/sh +git ls-files | egrep \\.\(c\|cpp\|h\|hpp\)$ | xargs clang-format -i