Reviewed By: gkassabli Differential Revision: D4284681 Summary: Rename csslayout directories to yoga fbshipit-source-id: f0c6855c2c6e4389b7867f48f72cbb697830fc5a
35 lines
1.1 KiB
Bash
Executable File
35 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
clang-format \
|
|
-style="{ \
|
|
AlignAfterOpenBracket: Align, \
|
|
AlignEscapedNewlinesLeft: true, \
|
|
AlignOperands: true, \
|
|
AllowAllParametersOfDeclarationOnNextLine: false, \
|
|
AllowShortBlocksOnASingleLine: false, \
|
|
AllowShortCaseLabelsOnASingleLine: false, \
|
|
AllowShortFunctionsOnASingleLine: false, \
|
|
AllowShortIfStatementsOnASingleLine: false, \
|
|
AllowShortLoopsOnASingleLine: false, \
|
|
BinPackArguments: false, \
|
|
BinPackParameters: false, \
|
|
BreakBeforeBraces: Attach, \
|
|
ColumnLimit: 100, \
|
|
ContinuationIndentWidth: 4, \
|
|
IndentCaseLabels: true, \
|
|
IndentWidth: 2, \
|
|
KeepEmptyLinesAtTheStartOfBlocks: false, \
|
|
Language: Cpp, \
|
|
PenaltyBreakBeforeFirstCallParameter: 100, \
|
|
PenaltyBreakString: 1000, \
|
|
PenaltyExcessCharacter: 100, \
|
|
PenaltyReturnTypeOnItsOwnLine: 100, \
|
|
PointerAlignment: Right, \
|
|
SortIncludes: true, \
|
|
SpaceAfterCStyleCast: true, \
|
|
UseTab: Never, \
|
|
}" "$@" \
|
|
-i $(dirname $0)/yoga/*.{h,c,cpp} \
|
|
$(dirname $0)/benchmarks/*.{h,c,cpp} \
|
|
$(dirname $0)/java/jni/*.{h,c,cpp}
|