From 75afd00f516bf8298cdce1f8653e98c677c03b22 Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Mon, 6 Apr 2020 13:58:57 -0400 Subject: A simple sciprt to clang-format the code --- format-code.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 format-code.sh (limited to 'format-code.sh') diff --git a/format-code.sh b/format-code.sh new file mode 100755 index 0000000..39c24e4 --- /dev/null +++ b/format-code.sh @@ -0,0 +1,12 @@ +# This bash script formats GPGPU-Sim using clang-format +THIS_DIR="$( cd "$( dirname "$BASH_SOURCE" )" && pwd )" +clang-format -i ${THIS_DIR}/libcuda/*.h +clang-format -i ${THIS_DIR}/libcuda/*.cc +clang-format -i ${THIS_DIR}/src/*.h +clang-format -i ${THIS_DIR}/src/*.cc +clang-format -i ${THIS_DIR}/src/gpgpu-sim/*.h +clang-format -i ${THIS_DIR}/src/gpgpu-sim/*.cc +clang-format -i ${THIS_DIR}/src/cuda-sim/*.h +clang-format -i ${THIS_DIR}/src/cuda-sim/*.cc +clang-format -i ${THIS_DIR}/src/gpuwattch/*.h +clang-format -i ${THIS_DIR}/src/gpuwattch/*.cc -- cgit v1.3