Add clang-format to repo

Add clang-format to repo.

Change-Id: I5cc1e4ed3fcbf41a28e16cf929a86cf54a3c5efb
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/inc/id_button.hpp b/inc/id_button.hpp
index cc664b2..a5c4180 100644
--- a/inc/id_button.hpp
+++ b/inc/id_button.hpp
@@ -15,22 +15,23 @@
 */
 
 #pragma once
-#include <phosphor-logging/elog-errors.hpp>
-#include <unistd.h>
-#include "xyz/openbmc_project/Chassis/Common/error.hpp"
-#include "xyz/openbmc_project/Chassis/Buttons/ID/server.hpp"
 #include "common.hpp"
 #include "gpio.hpp"
+#include "xyz/openbmc_project/Chassis/Buttons/ID/server.hpp"
+#include "xyz/openbmc_project/Chassis/Common/error.hpp"
 
-const static constexpr char *ID_BUTTON = "ID_BTN";
+#include <unistd.h>
+
+#include <phosphor-logging/elog-errors.hpp>
+
+const static constexpr char* ID_BUTTON = "ID_BTN";
 
 struct IDButton
     : sdbusplus::server::object::object<
-        sdbusplus::xyz::openbmc_project::Chassis::Buttons::server::ID>
+          sdbusplus::xyz::openbmc_project::Chassis::Buttons::server::ID>
 {
 
-    IDButton(sdbusplus::bus::bus& bus, const char* path,
-             EventPtr& event,
+    IDButton(sdbusplus::bus::bus& bus, const char* path, EventPtr& event,
              sd_event_io_handler_t handler = IDButton::EventHandler) :
         sdbusplus::server::object::object<
             sdbusplus::xyz::openbmc_project::Chassis::Buttons::server::ID>(
@@ -46,8 +47,8 @@
         {
             phosphor::logging::log<phosphor::logging::level::ERR>(
                 "ID_BUTTON: failed to config GPIO");
-            throw sdbusplus::xyz::openbmc_project::Chassis::Common::
-                Error::IOError();
+            throw sdbusplus::xyz::openbmc_project::Chassis::Common::Error::
+                IOError();
         }
 
         ret = sd_event_add_io(event.get(), nullptr, fd, EPOLLPRI,
@@ -57,8 +58,8 @@
             phosphor::logging::log<phosphor::logging::level::ERR>(
                 "ID_BUTTON: failed to add to event loop");
             ::closeGpio(fd);
-            throw sdbusplus::xyz::openbmc_project::Chassis::Common::
-                Error::IOError();
+            throw sdbusplus::xyz::openbmc_project::Chassis::Common::Error::
+                IOError();
         }
     }
 
@@ -69,8 +70,8 @@
 
     void simPress() override;
 
-    static int EventHandler(sd_event_source* es, int fd,
-                            uint32_t revents, void* userdata)
+    static int EventHandler(sd_event_source* es, int fd, uint32_t revents,
+                            void* userdata)
     {
 
         int n = -1;
@@ -80,8 +81,8 @@
         {
             phosphor::logging::log<phosphor::logging::level::ERR>(
                 "ID_BUTTON: userdata null!");
-            throw sdbusplus::xyz::openbmc_project::Chassis::Common::
-                Error::IOError();
+            throw sdbusplus::xyz::openbmc_project::Chassis::Common::Error::
+                IOError();
         }
 
         IDButton* idButton = static_cast<IDButton*>(userdata);
@@ -90,8 +91,8 @@
         {
             phosphor::logging::log<phosphor::logging::level::ERR>(
                 "ID_BUTTON: null pointer!");
-            throw sdbusplus::xyz::openbmc_project::Chassis::Common::
-                Error::IOError();
+            throw sdbusplus::xyz::openbmc_project::Chassis::Common::Error::
+                IOError();
         }
 
         n = ::lseek(fd, 0, SEEK_SET);
@@ -100,8 +101,8 @@
         {
             phosphor::logging::log<phosphor::logging::level::ERR>(
                 "ID_BUTTON: lseek error!");
-            throw sdbusplus::xyz::openbmc_project::Chassis::Common::
-                Error::IOError();
+            throw sdbusplus::xyz::openbmc_project::Chassis::Common::Error::
+                IOError();
         }
 
         n = ::read(fd, &buf, sizeof(buf));
@@ -109,8 +110,8 @@
         {
             phosphor::logging::log<phosphor::logging::level::ERR>(
                 "ID_BUTTON: read error!");
-            throw sdbusplus::xyz::openbmc_project::Chassis::Common::
-                Error::IOError();
+            throw sdbusplus::xyz::openbmc_project::Chassis::Common::Error::
+                IOError();
         }
 
         if (buf == '0')