Add clang format for C and C++
The libpldmoem is written in C and can be shared with projects other than
OpenBMC. The code is written in C and follows the Linux kernel coding guidelines.
The libpldmoemresponder will be written in modern C++ and the clang format
follows the OpenBMC coding guidelines.
clang-format for each input file will try to find the .clang-format file
located in the closest parent directory of the input file. Since the C code is
in libpldm directory it has a specific .clang-format.
Change-Id: Iedc56073d75acd0731c8537f165dde91bfa6c4e6
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/libpldm/.clang-format b/libpldm/.clang-format
new file mode 100644
index 0000000..a3ef233
--- /dev/null
+++ b/libpldm/.clang-format
@@ -0,0 +1,6 @@
+BasedOnStyle: LLVM
+IndentWidth: 8
+UseTab: Always
+BreakBeforeBraces: Linux
+AllowShortIfStatementsOnASingleLine: false
+IndentCaseLabels: false