[coreboot-gerrit] Patch set updated for coreboot: d678436 Provide coreboot coding style formalisation file for clang-format

Edward O'Callaghan (eocallaghan@alterapraxis.com) gerrit at coreboot.org
Sat Jan 3 05:58:05 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 d678436ff36815374d64fe4db8462c1320123a81
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>
---
 util/lint/clang-format | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/util/lint/clang-format b/util/lint/clang-format
new file mode 100644
index 0000000..a3ef233
--- /dev/null
+++ b/util/lint/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