summaryrefslogtreecommitdiffstats
path: root/.clang-format-c
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2018-03-09 15:27:03 +1030
committerAndrew Jeffery <andrew@aj.id.au>2018-03-19 10:56:22 +1030
commitf34db31d768e38c3add58a83cd943609771fd212 (patch)
tree659f3f17e8405f5edd7000f251345f5c889d5a22 /.clang-format-c
parent25eca77fabceb86e10ac4eb0cbe32484cbf21c14 (diff)
downloadphosphor-mboxd-f34db31d768e38c3add58a83cd943609771fd212.tar.gz
phosphor-mboxd-f34db31d768e38c3add58a83cd943609771fd212.zip
Format C++ files according to OpenBMC style guide
We don't touch the C yet as upstream hasn't got such a change in place. Change-Id: Ie6cab4bf99df520bb6655b9b00ae31e762e3c57b Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Diffstat (limited to '.clang-format-c')
-rw-r--r--.clang-format-c6
1 files changed, 6 insertions, 0 deletions
diff --git a/.clang-format-c b/.clang-format-c
new file mode 100644
index 0000000..a3ef233
--- /dev/null
+++ b/.clang-format-c
@@ -0,0 +1,6 @@
+BasedOnStyle: LLVM
+IndentWidth: 8
+UseTab: Always
+BreakBeforeBraces: Linux
+AllowShortIfStatementsOnASingleLine: false
+IndentCaseLabels: false
OpenPOWER on IntegriCloud