Add .clang-format to repo for automated style
Add .clang-format to repo for automated style. A consistent style
across Openbmc makes the code easier to read and edit.
Change-Id: I7c09792d2482f0be3e01776804347700f3e3e651
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/app.cpp b/app.cpp
index 876cf61..96c9ee4 100644
--- a/app.cpp
+++ b/app.cpp
@@ -1,12 +1,14 @@
-#include <iostream>
-#include <fstream>
-#include <string>
-#include <iterator>
-#include <exception>
-#include "defines.hpp"
-#include "write.hpp"
#include "args.hpp"
+#include "defines.hpp"
#include "parser.hpp"
+#include "write.hpp"
+
+#include <exception>
+#include <fstream>
+#include <iostream>
+#include <iterator>
+#include <string>
+#include <vector>
int main(int argc, char** argv)
{
@@ -16,7 +18,7 @@
{
using namespace openpower::vpd;
- args::Args arguments = args::parse(argc, argv);
+ args::Args arguments = args::parse(argc, argv);
// We need vpd file, FRU type and object path
if ((arguments.end() != arguments.find("vpd")) &&
@@ -39,7 +41,7 @@
if (frus.size() != objects.size())
{
std::cerr << "Unequal number of FRU types and object paths "
- "specified\n";
+ "specified\n";
rc = -1;
}
else
@@ -47,10 +49,7 @@
// Write VPD to FRU inventory
for (std::size_t index = 0; index < frus.size(); ++index)
{
- inventory::write(
- frus[index],
- vpdStore,
- objects[index]);
+ inventory::write(frus[index], vpdStore, objects[index]);
}
}
}