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/types.hpp b/types.hpp
index c155e40..b8038b4 100644
--- a/types.hpp
+++ b/types.hpp
@@ -35,12 +35,13 @@
constexpr auto networkFileSuffix = ".network";
constexpr auto deviceFileSuffix = ".netdev";
-}// namespace config
-}// namespace systemd
+} // namespace config
+} // namespace systemd
using IntfName = std::string;
-struct AddrInfo {
+struct AddrInfo
+{
uint8_t addrType;
std::string ipaddress;
uint16_t prefix;
@@ -68,12 +69,12 @@
};
using EventPtr = std::unique_ptr<sd_event, EventDeleter>;
-template<typename T>
+template <typename T>
using UniquePtr = std::unique_ptr<T, std::function<void(T*)>>;
using AddrList = std::list<AddrInfo>;
using IntfAddrMap = std::map<IntfName, AddrList>;
using InterfaceList = std::set<IntfName>;
-}//namespace network
-}//namespace phosphor
+} // namespace network
+} // namespace phosphor