xref: /reactos/sdk/tools/do_code_format.sh (revision 8a978a17)
1#!/bin/bash
2# do_code_format.sh
3
4function version
5{
6  echo "$(basename ${0}) version 0.0.2"
7}
8
9function usage
10{
11  cat <<EOF
12$(basename ${0}) does code formatting.
13
14Usage:
15    $(basename ${0}) [<options>] <files>
16
17Options:
18    --help       print this message
19    --version    print $(basename ${0}) version
20EOF
21}
22
23case ${1} in
24  --help)
25    usage
26    exit 0
27  ;;
28
29  --version)
30    version
31    exit 0
32  ;;
33esac
34
35clang-format -style=file -i $@
36