diff options
| author | Tim Rogers <[email protected]> | 2020-04-06 13:58:57 -0400 |
|---|---|---|
| committer | Tim Rogers <[email protected]> | 2020-04-06 13:58:57 -0400 |
| commit | 75afd00f516bf8298cdce1f8653e98c677c03b22 (patch) | |
| tree | fd34eb4f527e2e222b1148e027bb242835499553 /format-code.sh | |
| parent | 0748a2aa0325ec2c9f8f011967103525b0237c87 (diff) | |
A simple sciprt to clang-format the code
Diffstat (limited to 'format-code.sh')
| -rwxr-xr-x | format-code.sh | 12 |
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 |
