Update format.sh
Summary: The format.sh was referring to an outdated `benchmarks/` directory and left out a bunch of other C/C++ files. This updates it to cover all but the build artifacts and vendored libraries in `lib/`. Reviewed By: emilsjolander Differential Revision: D4481490 fbshipit-source-id: 056e00359f794d0aa999fd65ec1ef0c657738867
This commit is contained in:
committed by
Facebook Github Bot
parent
44590b8907
commit
6daad3ae66
11
format.sh
11
format.sh
@@ -1,5 +1,9 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
FILES=$(find . \( -path ./buck-out -o -path ./lib \) -prune -o \
|
||||||
|
\( -name \*.h -o -name \*.c -o -name \*.cpp \) -print)
|
||||||
|
|
||||||
|
for f in $FILES "$@"; do
|
||||||
clang-format \
|
clang-format \
|
||||||
-style="{ \
|
-style="{ \
|
||||||
AlignAfterOpenBracket: Align, \
|
AlignAfterOpenBracket: Align, \
|
||||||
@@ -28,7 +32,6 @@ clang-format \
|
|||||||
SortIncludes: true, \
|
SortIncludes: true, \
|
||||||
SpaceAfterCStyleCast: true, \
|
SpaceAfterCStyleCast: true, \
|
||||||
UseTab: Never, \
|
UseTab: Never, \
|
||||||
}" "$@" \
|
ObjCSpaceAfterProperty: true, \
|
||||||
-i $(dirname $0)/yoga/*.{h,c,cpp} \
|
}" -i "$f"
|
||||||
$(dirname $0)/benchmarks/*.{h,c,cpp} \
|
done
|
||||||
$(dirname $0)/java/jni/*.{h,c,cpp}
|
|
||||||
|
Reference in New Issue
Block a user