https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f4f010ba50d70215ee3da…
commit f4f010ba50d70215ee3dab0337ddbb451197f4c3
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Tue Dec 31 11:28:56 2019 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Tue Dec 31 11:28:56 2019 +0900
[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(+)
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 <<EOF
+$(basename ${0}) does code formatting.
+
+Usage:
+ $(basename ${0}) [<options>] <files>
+
+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 $@