summaryrefslogtreecommitdiff
path: root/format-code.sh
diff options
context:
space:
mode:
authorTim Rogers <[email protected]>2020-04-06 13:58:57 -0400
committerTim Rogers <[email protected]>2020-04-06 13:58:57 -0400
commit75afd00f516bf8298cdce1f8653e98c677c03b22 (patch)
treefd34eb4f527e2e222b1148e027bb242835499553 /format-code.sh
parent0748a2aa0325ec2c9f8f011967103525b0237c87 (diff)
A simple sciprt to clang-format the code
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