From f4f010ba50d70215ee3dab0337ddbb451197f4c3 Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Tue, 31 Dec 2019 11:28:56 +0900 Subject: [PATCH] [SDK][TOOLS] Add do_code_format.sh to sdk/tools (#2191) do_code_format.sh --- A command line tool using clang-format --- sdk/tools/do_code_format.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 sdk/tools/do_code_format.sh diff --git a/sdk/tools/do_code_format.sh b/sdk/tools/do_code_format.sh new file mode 100644 index 00000000000..d35f43c0a05 --- /dev/null +++ b/sdk/tools/do_code_format.sh @@ -0,0 +1,35 @@ +#!/bin/bash +# do_code_format.sh + +function version +{ + echo "$(basename ${0}) version 0.0.2" +} + +function usage +{ + cat <] + +Options: + --help print this message + --version print $(basename ${0}) version +EOF +} + +case ${1} in + --help) + usage + exit 0 + ;; + + --version) + version + exit 0 + ;; +esac + +clang-format -style=file -i $@