aboutsummaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-11-05 21:30:51 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-11-05 21:34:05 +0100
commite423a3a1b1cced36618ef4aea076cb5ba275f0a4 (patch)
tree6da0c3cdc3eb936f89783d40c486d33713ebff23 /.clang-format
parent916f354c9b77881a50f3874e706d714ccbdc7dd0 (diff)
downloadsdn-e423a3a1b1cced36618ef4aea076cb5ba275f0a4.tar.gz
sdn-e423a3a1b1cced36618ef4aea076cb5ba275f0a4.tar.xz
sdn-e423a3a1b1cced36618ef4aea076cb5ba275f0a4.zip
Add clang-format configuration, clean up
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format14
1 files changed, 14 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..fa8134e
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,14 @@
+BasedOnStyle: LLVM
+ColumnLimit: 80
+IndentWidth: 4
+TabWidth: 4
+UseTab: ForContinuationAndIndentation
+SpaceAfterCStyleCast: true
+SpaceBeforeParens: Always
+AlignAfterOpenBracket: DontAlign
+AlignEscapedNewlines: DontAlign
+AlignOperands: DontAlign
+AlignConsecutiveMacros: Consecutive
+BreakBeforeTernaryOperators: true
+SpacesBeforeTrailingComments: 2
+WhitespaceSensitiveMacros: ['XX', 'ACTIONS', 'LS']