Add .clang-format for automated style
Add a .clang-format style to enable automated style check to align code
format with rest of OpenBmc.
Change-Id: Ieace2b9135fa29a47be1aea21766a87b4e0b29b1
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/src/log_manager.hpp b/src/log_manager.hpp
index 5dac0f9..3513dac 100644
--- a/src/log_manager.hpp
+++ b/src/log_manager.hpp
@@ -22,14 +22,13 @@
#include "log_storage.hpp"
-
/** @class LogManager
* @brief Log manager.
* All functions within this class are not thread-safe.
*/
class LogManager
{
-public:
+ public:
/** @brief Constructor. */
LogManager();
@@ -43,11 +42,12 @@
int openHostLog();
/** @brief Close the host's log stream.
- */
+ */
void closeHostLog();
/** @brief Get file descriptor by host's log stream.
- * Descriptor can be used to register it in an external polling manager.
+ * Descriptor can be used to register it in an external polling
+ * manager.
*
* @return file descriptor (actually it is an opened socket)
*/
@@ -66,7 +66,7 @@
*/
int flush();
-private:
+ private:
/** @brief Read incoming data from host's log stream.
*
* @param[out] buffer - buffer to write incoming data
@@ -98,7 +98,7 @@
*/
int rotateLogFiles() const;
-private:
+ private:
/** @brief Log storage. */
LogStorage storage_;
/** @brief File descriptor of the input log stream. */