[coreboot-gerrit] New patch to review for coreboot: 907184f Provide coreboot coding style formalisation file for clang-format
Edward O'Callaghan (eocallaghan@alterapraxis.com)
gerrit at coreboot.org
Fri Jan 2 16:47:48 CET 2015
Edward O'Callaghan (eocallaghan at alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8036
-gerrit
commit 907184f632283a6bdd3ccfdf15d0bd37132eb95b
Author: Edward O'Callaghan <eocallaghan at 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 at 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
More information about the coreboot-gerrit
mailing list