summaryrefslogtreecommitdiff
path: root/format-code.sh
diff options
context:
space:
mode:
authorMahmoud <[email protected]>2020-05-23 20:06:25 -0400
committerMahmoud <[email protected]>2020-05-23 20:06:25 -0400
commitd610fd81420979e956bf37100f7e1c7f1d153831 (patch)
tree392a841f21fec5136339ff36ad9b5c7b1b4cb480 /format-code.sh
parent6cedd3ef4973f3785757413db89a7c5d0ee2b58b (diff)
parente9e9fcf5957530ecb927aecb5ea238e4b78a4f45 (diff)
Merge branch 'dev' of https://github.com/purdue-aalp/gpgpu-sim_distribution into dev-traces
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