summaryrefslogtreecommitdiff
path: root/format-code.sh
diff options
context:
space:
mode:
Diffstat (limited to 'format-code.sh')
-rwxr-xr-xformat-code.sh12
1 files changed, 12 insertions, 0 deletions
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