summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2019-04-11 03:41:37 +0300
committerAnup Patel <anup@brainfault.org>2019-04-24 07:19:46 +0300
commit1e43ce75ffbe1a107b2d8a1b2957747029446f7d (patch)
tree545efc7f4f21bf6cd87ecba3e917c723ea1bce47 /.clang-format
parent804b997ed415001097803e4b537fd63d043874b9 (diff)
downloadopensbi-1e43ce75ffbe1a107b2d8a1b2957747029446f7d.tar.xz
top: add .clang-format
Add a clang-format to automate consistent code formatting. Automating coding style reformatting removes a lot of manual checkpatch-type fixups, and can easily be implemented as a linter in code review environments. Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format16
1 files changed, 16 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..c80c0aa
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,16 @@
+AlignConsecutiveAssignments: true
+AlignEscapedNewlines: Left
+AlignTrailingComments: true
+AllowShortFunctionsOnASingleLine: None
+BraceWrapping:
+ AfterFunction: true
+BreakBeforeBraces: Custom
+BreakStringLiterals: false
+ContinuationIndentWidth: 8
+Cpp11BracedListStyle: false
+IndentWidth: 8
+ReflowComments: false
+SortIncludes: false
+SpacesInContainerLiterals: false
+TabWidth: 8
+UseTab: Always