From fed46342500bb07385549c7e3b204b49d107bfc4 Mon Sep 17 00:00:00 2001
From: Yuxuan Shui <yshuiv7@gmail.com>
Date: Tue, 8 Jan 2019 22:14:09 +0000
Subject: [PATCH] Check in .clang-format

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
---
 .clang-format | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 .clang-format

diff --git a/.clang-format b/.clang-format
new file mode 100644
index 00000000..ea447d79
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,37 @@
+BasedOnStyle: LLVM
+TabWidth: 8
+UseTab: ForIndentation
+BreakBeforeBraces: Attach
+#BreakStringLiterals: true
+IndentWidth: 8
+AlignAfterOpenBracket: Align
+ColumnLimit: 90
+#ExperimentalAutoDetectBinPacking: true
+BinPackArguments: true
+BinPackParameters: true
+#ReflowComments: true
+AlignTrailingComments: true
+SpacesBeforeTrailingComments: 8
+SpaceBeforeAssignmentOperators: true
+SpaceBeforeParens: ControlStatements
+AllowShortIfStatementsOnASingleLine: false
+AllowShortCaseLabelsOnASingleLine: true
+AllowShortFunctionsOnASingleLine: false
+IndentCaseLabels: false
+PenaltyReturnTypeOnItsOwnLine: 0
+PenaltyBreakAssignment: 0
+PenaltyBreakBeforeFirstCallParameter: 1
+PenaltyBreakComment: 1
+PenaltyBreakString: 5
+PenaltyExcessCharacter: 1
+PenaltyBreakFirstLessLess: 0
+PenaltyBreakTemplateDeclaration: 0
+BreakBeforeBinaryOperators: None
+IncludeCategories:
+  - Regex:           '<.*\.h>'
+    Priority:        1
+  - Regex:           '".*\.h"'
+    Priority:        2
+SortIncludes: true
+#ForEachMacros:   [ list_for_each_entry, list_for_each_entry_safe, HASH_ITER ]
+#AlignConsecutiveAssignments: true