From e1afc53b51d24afcfd8b8aab15e4ba5d99b4a772 Mon Sep 17 00:00:00 2001 From: Aaron Barnes <42706182+barnes88@users.noreply.github.com> Date: Tue, 16 Jul 2024 12:33:16 -0600 Subject: Auto clang format (#74) * add automated clang formatter * Automated clang-format * use /bin/bash and add print * use default checkout ref * Format only after tests are success * Run CI on merge group --------- Co-authored-by: barnes88 Co-authored-by: JRPAN <25518778+JRPan@users.noreply.github.com> --- format-code.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'format-code.sh') diff --git a/format-code.sh b/format-code.sh index ac753f0..acd33ab 100755 --- a/format-code.sh +++ b/format-code.sh @@ -1,5 +1,6 @@ # This bash script formats GPGPU-Sim using clang-format THIS_DIR="$( cd "$( dirname "$BASH_SOURCE" )" && pwd )" +echo "Running clang-format on $THIS_DIR" clang-format -i ${THIS_DIR}/libcuda/*.h clang-format -i ${THIS_DIR}/libcuda/*.cc clang-format -i ${THIS_DIR}/src/*.h -- cgit v1.3