move .clang-format file into position
The CI expects the .clang-format file to appear at the root of the
repository.
Also fixes the Language selection from C to Cpp. Clang-format uses the
Cpp language specifier for both C and C++.
Fixes it to use spaces instead of tabs per:
https://github.com/openbmc/docs/blob/master/CONTRIBUTING.md#c
Change-Id: Ibcc40eeb04c73f53a33986bdc47d69e59d59373c
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..5a4737c
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,21 @@
+---
+BasedOnStyle: LLVM
+Language: Cpp
+IndentWidth: 8
+UseTab: Always
+BreakBeforeBraces: Linux
+AlwaysBreakBeforeMultilineStrings: true
+AllowShortIfStatementsOnASingleLine: false
+AllowShortLoopsOnASingleLine: false
+AllowShortFunctionsOnASingleLine: false
+IndentCaseLabels: false
+AlignEscapedNewlinesLeft: false
+AlignTrailingComments: true
+AllowAllParametersOfDeclarationOnNextLine: false
+AlignAfterOpenBracket: true
+SpaceAfterCStyleCast: false
+MaxEmptyLinesToKeep: 2
+BreakBeforeBinaryOperators: NonAssignment
+BreakStringLiterals: false
+SortIncludes: false
+ContinuationIndentWidth: 8