clang-format: Update to match docs repo
Update the .clang-format file and run clang-format-6.0.
This .clang-format matches the example one in
https://github.com/openbmc/docs/blob/master/cpp-style-and-conventions.md#clang-formatting
Change-Id: Ia331c9a5b040e1a3c45a0ebf1b8d776d93b05ae5
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/dns_updater.cpp b/dns_updater.cpp
index e98cc4a..bf29fff 100644
--- a/dns_updater.cpp
+++ b/dns_updater.cpp
@@ -1,7 +1,7 @@
-#include "dns_updater.hpp"
-
#include "config.h"
+#include "dns_updater.hpp"
+
#include <fstream>
#include <phosphor-logging/elog-errors.hpp>
#include <phosphor-logging/log.hpp>
@@ -17,8 +17,7 @@
namespace updater
{
-void updateDNSEntries(const fs::path& inFile,
- const fs::path& outFile)
+void updateDNSEntries(const fs::path& inFile, const fs::path& outFile)
{
using namespace phosphor::logging;
using namespace sdbusplus::xyz::openbmc_project::Common::Error;
@@ -44,10 +43,10 @@
for (std::string line; std::getline(inStream, line);)
{
auto index = line.find("DNS=");
- if(index != std::string::npos)
+ if (index != std::string::npos)
{
- auto dns = line.substr(index + 4);
- outStream << "nameserver " << dns << "\n" ;
+ auto dns = line.substr(index + 4);
+ outStream << "nameserver " << dns << "\n";
}
}
return;