Add clang-format to repo

Add clang-format to repo.

Change-Id: Ib3f81524b66414df3e6c93d8a6df6e22c43841e0
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/ledlayout.hpp b/ledlayout.hpp
index 75c2d20..90b333c 100644
--- a/ledlayout.hpp
+++ b/ledlayout.hpp
@@ -12,46 +12,46 @@
  */
 namespace Layout
 {
-    /** @brief Define possible actions on a given LED.
-     *  For the BLINK operation, follow 50-50 duty cycle
-     */
-    enum Action
-    {
-        Off,
-        On,
-        Blink,
-    };
+/** @brief Define possible actions on a given LED.
+ *  For the BLINK operation, follow 50-50 duty cycle
+ */
+enum Action
+{
+    Off,
+    On,
+    Blink,
+};
 
-    /** @brief Name of the LED and it's proposed action.
-     *  This structure is supplied as configuration at build time
-     */
-    struct LedAction
-    {
-        std::string name;
-        Action action;
-        uint8_t dutyOn;
-        uint16_t period;
-        Action priority;
+/** @brief Name of the LED and it's proposed action.
+ *  This structure is supplied as configuration at build time
+ */
+struct LedAction
+{
+    std::string name;
+    Action action;
+    uint8_t dutyOn;
+    uint16_t period;
+    Action priority;
 
-        // Order LEDs such that same LEDs are grouped next to
-        // each other and the same LEDs are in priority order
-        // with the highest priority coming first
-        bool operator<(const LedAction& right) const
+    // Order LEDs such that same LEDs are grouped next to
+    // each other and the same LEDs are in priority order
+    // with the highest priority coming first
+    bool operator<(const LedAction& right) const
+    {
+        if (name == right.name)
         {
-            if (name == right.name)
+            if (action == right.action)
             {
-                if (action == right.action)
-                {
-                    return false;
-                }
-                else if (action == priority)
-                {
-                    return true;
-                }
+                return false;
             }
-            return name < right.name;
+            else if (action == priority)
+            {
+                return true;
+            }
         }
-    };
+        return name < right.name;
+    }
+};
 } // namespace Layout
 } // namespace led
 } // namespace phosphor