Patrick Georgi (pgeorgi@google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8036
-gerrit
commit 8d4017991f18aa54b68db7e02bcdb721e7d3a39b Author: Edward O'Callaghan eocallaghan@alterapraxis.com Date: Sat Jan 3 01:55:22 2015 +1100
Provide coreboot coding style formalisation file for clang-format
The Clang project has a powerful code rewrite engine in the form of LibFormat. A auxiliary tool is provided called `clang-format' that can take a coding style formalisation file and rewrite your code to conform to this style. Further, a wrapper script called `git-clang-format' is also provided that can hook pre-commits potentially replacing our slow and poor coverage regexp scripts on pre-commits.
Herein we provide essentially the Linux Style Guide formalism.
Change-Id: Ica2207fdb8a4702793fa73eba6293b7b36ea9050 Signed-off-by: Edward O'Callaghan eocallaghan@alterapraxis.com --- .clang-format | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..a3ef233 --- /dev/null +++ b/.clang-format @@ -0,0 +1,6 @@ +BasedOnStyle: LLVM +IndentWidth: 8 +UseTab: Always +BreakBeforeBraces: Linux +AllowShortIfStatementsOnASingleLine: false +IndentCaseLabels: false