add .clang-format
Add .clang-format for automatic style.
Change-Id: I6d240009370179b5b8f1f646b0476a059ec6aa85
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/filedescriptor.cpp b/filedescriptor.cpp
index 89f77e2..c96249e 100644
--- a/filedescriptor.cpp
+++ b/filedescriptor.cpp
@@ -13,13 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-#include <stdexcept>
-#include <unistd.h>
-#include <phosphor-logging/elog.hpp>
-#include <phosphor-logging/elog-errors.hpp>
-#include <xyz/openbmc_project/Common/File/error.hpp>
#include "filedescriptor.hpp"
+#include <unistd.h>
+
+#include <phosphor-logging/elog-errors.hpp>
+#include <phosphor-logging/elog.hpp>
+#include <stdexcept>
+#include <xyz/openbmc_project/Common/File/error.hpp>
+
namespace openpower
{
namespace util
@@ -37,13 +39,11 @@
{
using metadata = xyz::openbmc_project::Common::File::Open;
- elog<file_error::Open>(
- metadata::ERRNO(errno),
- metadata::PATH(path.c_str()));
+ elog<file_error::Open>(metadata::ERRNO(errno),
+ metadata::PATH(path.c_str()));
}
}
-
FileDescriptor::~FileDescriptor()
{
if (fd >= 0)
@@ -52,5 +52,5 @@
}
}
-}
-}
+} // namespace util
+} // namespace openpower