2016-08-04 08:20:11 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
clang-format \
|
|
|
|
-style="{ \
|
2016-10-20 06:18:23 -07:00
|
|
|
AlignAfterOpenBracket: Align, \
|
2016-08-15 09:15:02 -07:00
|
|
|
AlignEscapedNewlinesLeft: true, \
|
|
|
|
AlignOperands: true, \
|
|
|
|
AllowAllParametersOfDeclarationOnNextLine: false, \
|
|
|
|
AllowShortBlocksOnASingleLine: false, \
|
2016-09-20 10:16:15 -07:00
|
|
|
AllowShortCaseLabelsOnASingleLine: false, \
|
2016-08-15 09:15:02 -07:00
|
|
|
AllowShortFunctionsOnASingleLine: false, \
|
|
|
|
AllowShortIfStatementsOnASingleLine: false, \
|
|
|
|
AllowShortLoopsOnASingleLine: false, \
|
|
|
|
BinPackArguments: false, \
|
2016-08-04 08:20:11 -07:00
|
|
|
BinPackParameters: false, \
|
2016-08-15 09:15:02 -07:00
|
|
|
BreakBeforeBraces: Attach, \
|
|
|
|
ColumnLimit: 100, \
|
|
|
|
ContinuationIndentWidth: 4, \
|
|
|
|
IndentCaseLabels: true, \
|
|
|
|
IndentWidth: 2, \
|
|
|
|
KeepEmptyLinesAtTheStartOfBlocks: false, \
|
|
|
|
Language: Cpp, \
|
|
|
|
PenaltyBreakBeforeFirstCallParameter: 100, \
|
2016-10-20 06:18:23 -07:00
|
|
|
PenaltyBreakString: 1000, \
|
2016-08-15 09:15:02 -07:00
|
|
|
PenaltyExcessCharacter: 100, \
|
2016-10-20 06:18:23 -07:00
|
|
|
PenaltyReturnTypeOnItsOwnLine: 100, \
|
2016-08-04 08:20:11 -07:00
|
|
|
PointerAlignment: Right, \
|
2016-08-15 09:15:02 -07:00
|
|
|
SortIncludes: true, \
|
|
|
|
SpaceAfterCStyleCast: true, \
|
|
|
|
UseTab: Never, \
|
2016-08-04 08:20:11 -07:00
|
|
|
}" "$@" \
|
2016-12-07 05:12:11 -08:00
|
|
|
-i $(dirname $0)/yoga/*.{h,c,cpp} \
|
2016-08-15 09:15:09 -07:00
|
|
|
$(dirname $0)/benchmarks/*.{h,c,cpp} \
|
|
|
|
$(dirname $0)/java/jni/*.{h,c,cpp}
|