aboutsummaryrefslogtreecommitdiffstats
path: root/.clang-format
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2019-05-03 22:07:05 -0700
committerBen Widawsky <ben@bwidawsk.net>2019-05-09 08:40:05 -0700
commit02e7d931a7d76a83ea0a25a93b332be8a366c7b6 (patch)
tree2d7ad6957b4beb7cab97599db73eb62d715b35fa /.clang-format
parent05a5027db87cd4e5f88a24d0e4c5c9eb77225a5d (diff)
downloadyosys-02e7d931a7d76a83ea0a25a93b332be8a366c7b6.tar.gz
yosys-02e7d931a7d76a83ea0a25a93b332be8a366c7b6.tar.bz2
yosys-02e7d931a7d76a83ea0a25a93b332be8a366c7b6.zip
Add a .clang-format
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format13
1 files changed, 13 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 000000000..28d13da25
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,13 @@
+# Default Linux style
+BasedOnStyle: LLVM
+IndentWidth: 8
+UseTab: Always
+BreakBeforeBraces: Linux
+AllowShortIfStatementsOnASingleLine: false
+IndentCaseLabels: false
+
+# From CodingReadme
+TabWidth: 8
+ContinuationIndentWidth: 2
+ColumnLimit: 150
+# BreakBeforeBraces: Linux