add clang-format to repo for style

Add .clang-format to repo for style.

Change-Id: I286b3b245550d6a736d7df797f0ce21b51d7a235
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/endian.hpp b/endian.hpp
index 284fd03..5597a0b 100644
--- a/endian.hpp
+++ b/endian.hpp
@@ -14,7 +14,8 @@
     static T from_network(T) = delete;
 };
 
-template<> struct convert<uint16_t>
+template <>
+struct convert<uint16_t>
 {
     static uint16_t to_network(uint16_t i)
     {
@@ -26,7 +27,8 @@
     };
 };
 
-template<> struct convert<uint32_t>
+template <>
+struct convert<uint32_t>
 {
     static uint32_t to_network(uint32_t i)
     {
@@ -37,13 +39,15 @@
         return be32toh(i);
     };
 };
-}
-template<typename T> T to_network(T i)
+} // namespace details
+template <typename T>
+T to_network(T i)
 {
     return details::convert<T>::to_network(i);
 }
-template<typename T> T from_network(T i)
+template <typename T>
+T from_network(T i)
 {
     return details::convert<T>::from_network(i);
 }
-}
+} // namespace endian