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: Ic2c462525eb27b8295c2b298871e04268d93faf2
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/epoch_base.hpp b/epoch_base.hpp
index 79aca90..80fa3f4 100644
--- a/epoch_base.hpp
+++ b/epoch_base.hpp
@@ -1,13 +1,13 @@
#pragma once
#include "config.h"
+
#include "property_change_listener.hpp"
+#include <chrono>
#include <sdbusplus/bus.hpp>
#include <xyz/openbmc_project/Time/EpochTime/server.hpp>
-#include <chrono>
-
namespace phosphor
{
namespace time
@@ -18,48 +18,47 @@
* @details A base class that implements xyz.openbmc_project.Time.EpochTime
* DBus API for epoch time.
*/
-class EpochBase : public sdbusplus::server::object::object <
- sdbusplus::xyz::openbmc_project::Time::server::EpochTime >,
- public PropertyChangeListner
+class EpochBase : public sdbusplus::server::object::object<
+ sdbusplus::xyz::openbmc_project::Time::server::EpochTime>,
+ public PropertyChangeListner
{
- public:
- friend class TestEpochBase;
+ public:
+ friend class TestEpochBase;
- EpochBase(sdbusplus::bus::bus& bus,
- const char* objPath);
+ EpochBase(sdbusplus::bus::bus& bus, const char* objPath);
- /** @brief Notified on time mode changed */
- void onModeChanged(Mode mode) override;
+ /** @brief Notified on time mode changed */
+ void onModeChanged(Mode mode) override;
- /** @brief Notified on time owner changed */
- void onOwnerChanged(Owner owner) override;
+ /** @brief Notified on time owner changed */
+ void onOwnerChanged(Owner owner) override;
- protected:
- /** @brief Persistent sdbusplus DBus connection */
- sdbusplus::bus::bus& bus;
+ protected:
+ /** @brief Persistent sdbusplus DBus connection */
+ sdbusplus::bus::bus& bus;
- /** @brief The current time mode */
- Mode timeMode = DEFAULT_TIME_MODE;
+ /** @brief The current time mode */
+ Mode timeMode = DEFAULT_TIME_MODE;
- /** @brief The current time owner */
- Owner timeOwner = DEFAULT_TIME_OWNER;
+ /** @brief The current time owner */
+ Owner timeOwner = DEFAULT_TIME_OWNER;
- /** @brief Set current time to system
- *
- * This function set the time to system by invoking systemd
- * org.freedesktop.timedate1's SetTime method.
- *
- * @param[in] timeOfDayUsec - Microseconds since UTC
- *
- * @return true or false to indicate if it sets time successfully
- */
- bool setTime(const std::chrono::microseconds& timeOfDayUsec);
+ /** @brief Set current time to system
+ *
+ * This function set the time to system by invoking systemd
+ * org.freedesktop.timedate1's SetTime method.
+ *
+ * @param[in] timeOfDayUsec - Microseconds since UTC
+ *
+ * @return true or false to indicate if it sets time successfully
+ */
+ bool setTime(const std::chrono::microseconds& timeOfDayUsec);
- /** @brief Get current time
- *
- * @return Microseconds since UTC
- */
- std::chrono::microseconds getTime() const;
+ /** @brief Get current time
+ *
+ * @return Microseconds since UTC
+ */
+ std::chrono::microseconds getTime() const;
};
} // namespace time