Format check hpp extension (#6187)
author오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Mon, 5 Aug 2019 04:16:54 +0000 (13:16 +0900)
committer이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Mon, 5 Aug 2019 04:16:54 +0000 (13:16 +0900)
Add format check extension: hpp file
Fix format: nnfw_api.hpp

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
infra/command/format
runtimes/neurun/frontend/api/wrapper/nnfw_api.hpp

index 5fb5e90..eea0a38 100644 (file)
@@ -84,7 +84,7 @@ function check_cpp_files() {
     fi
 
     # File extension to check
-    if [[ ${f} == +(*.h|*.cpp|*.cc|*.c|*.cl) ]]; then
+    if [[ ${f} == +(*.h|*.hpp|*.cpp|*.cc|*.c|*.cl) ]]; then
       FILES_TO_CHECK_CPP+=("${f}")
     fi
   done
index cbef178..8d31ad2 100644 (file)
 #include "exec/Execution.h"
 #include "graph/Graph.h"
 
-
-struct nnfw_session {
+struct nnfw_session
+{
 public:
   nnfw_session();
 
-  NNFW_STATUS load_model_from_file(const charpackage_file_path);
+  NNFW_STATUS load_model_from_file(const char *package_file_path);
   NNFW_STATUS prepare();
   NNFW_STATUS run();
 
-  NNFW_STATUS set_input(int index,NNFW_TYPE type, const void *buffer,
-                        size_t length);
-  NNFW_STATUS set_output(int index,NNFW_TYPE type, void *buffer,
-                         size_t length);
+  NNFW_STATUS set_input(int index, NNFW_TYPE type, const void *buffer, size_t length);
+  NNFW_STATUS set_output(int index, NNFW_TYPE type, void *buffer, size_t length);
 
 private:
   std::shared_ptr<neurun::graph::Graph> _graph;
   std::shared_ptr<neurun::exec::Execution> _execution;
 };
 
-
-#endif //__API_NNFW_INTERNAL_HPP__
+#endif // __API_NNFW_INTERNAL_HPP__