From 2f2b818b11d3a6fac6eaf9439ba97ff958bc52d2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=98=A4=ED=98=95=EC=84=9D/On-Device=20Lab=28SR=29/Staff?= =?utf8?q?=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Mon, 5 Aug 2019 13:16:54 +0900 Subject: [PATCH] Format check hpp extension (#6187) Add format check extension: hpp file Fix format: nnfw_api.hpp Signed-off-by: Hyeongseok Oh --- infra/command/format | 2 +- runtimes/neurun/frontend/api/wrapper/nnfw_api.hpp | 15 ++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/infra/command/format b/infra/command/format index 5fb5e90..eea0a38 100644 --- a/infra/command/format +++ b/infra/command/format @@ -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 diff --git a/runtimes/neurun/frontend/api/wrapper/nnfw_api.hpp b/runtimes/neurun/frontend/api/wrapper/nnfw_api.hpp index cbef178..8d31ad2 100644 --- a/runtimes/neurun/frontend/api/wrapper/nnfw_api.hpp +++ b/runtimes/neurun/frontend/api/wrapper/nnfw_api.hpp @@ -22,24 +22,21 @@ #include "exec/Execution.h" #include "graph/Graph.h" - -struct nnfw_session { +struct nnfw_session +{ public: nnfw_session(); - NNFW_STATUS load_model_from_file(const char* package_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 _graph; std::shared_ptr _execution; }; - -#endif //__API_NNFW_INTERNAL_HPP__ +#endif // __API_NNFW_INTERNAL_HPP__ -- 2.7.4