summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2018-05-01 14:30:52 -0600
committerchrome-bot <chrome-bot@chromium.org>2018-05-02 22:20:48 -0700
commitc44f56739a671b188081979d159638f107b281d9 (patch)
tree1dcfc2e1a9cbc13535631d9d9a22c3395281ac26 /.clang-format
parentb10c587e7b19786282081e681ce6b81e9810be37 (diff)
downloadchrome-ec-c44f56739a671b188081979d159638f107b281d9.tar.gz
ec: Add .clang-format
Copied from coreboot. BUG=none BRANCH=none TEST=Tried formatting a few lines. Change-Id: Iff9e6970cb8d725834f5f1f0c6447b62568a6f09 Signed-off-by: Raul E Rangel <rrangel@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1038156 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format10
1 files changed, 10 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000000..16d606b384
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,10 @@
+BasedOnStyle: LLVM
+Language: Cpp
+IndentWidth: 8
+UseTab: Always
+BreakBeforeBraces: Linux
+AllowShortIfStatementsOnASingleLine: false
+IndentCaseLabels: false
+SortIncludes: false
+ContinuationIndentWidth: 8
+ColumnLimit: 80