Add and run clang format script

Summary: This code used to be auto generated. Let's let clang-format clean up some stuff for us.

Reviewed By: lucasr

Differential Revision: D3662225

fbshipit-source-id: ddd4064cbf9be21ca6a97001ace1b56b4314c86f
This commit is contained in:
Emil Sjolander
2016-08-04 08:20:11 -07:00
committed by Facebook Github Bot 9
parent 9278ff462e
commit efe1595f0e
9 changed files with 680 additions and 541 deletions

12
format.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
clang-format \
-style="{ \
BasedOnStyle: WebKit, \
IndentWidth: 2, \
ColumnLimit: 100, \
BreakBeforeBraces: Attach, \
BinPackParameters: false, \
PointerAlignment: Right, \
}" "$@" \
-i ./**/*.{h,c,cpp}