build: Migrate to meson and add clang-format
Removed the Cmake files and cleanup formatting errors.
Change-Id: I787041507d3ff6afc6b4a3af3930e8d8363c9570
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/include/file_handling.hpp b/include/file_handling.hpp
index bb4f703..94f6d5a 100644
--- a/include/file_handling.hpp
+++ b/include/file_handling.hpp
@@ -1,3 +1,4 @@
+// clang-format off
/********************************************************************************
* HON HAI Precision IND.Co., LTD. *
* Personal Computer & Enterprise Product Business Group *
@@ -13,8 +14,11 @@
* permission of FOXCONN/CESBG/CABG/SRD. *
* *
********************************************************************************/
+// clang-format on
#include <unistd.h>
+#include <system_error>
+
std::system_error errnoException(const std::string& message);
int sysopen(const std::string& path);
@@ -23,7 +27,6 @@
void lseeker(int fd_, size_t offset);
-void readBin(int fd_, size_t offset, void *ptr, size_t size);
+void readBin(int fd_, size_t offset, void* ptr, size_t size);
-void writeBin(int fd_, size_t offset, void *ptr, size_t size);
-
+void writeBin(int fd_, size_t offset, void* ptr, size_t size);