From a7e43132fd323d3c5b565431f4826b2c557d4a7d Mon Sep 17 00:00:00 2001 From: lixianjing Date: Tue, 9 May 2023 18:57:48 +0800 Subject: [PATCH] improve format.sh --- format.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/format.sh b/format.sh index 146aef70a..d5a17e438 100755 --- a/format.sh +++ b/format.sh @@ -1,5 +1,11 @@ -find src tools demos tests -name \*.c -exec clang-format -i {} \; -find src tools demos tests -name \*.h -exec clang-format -i {} \; -find src tools demos tests -name \*.cc -exec clang-format -i {} \; -find src tools demos tests -name \*.cpp -exec clang-format -i {} \; +find src tools demos -name \*.c -exec clang-format -i {} \; +find src tools demos -name \*.h -exec clang-format -i {} \; +find src tools demos -name \*.cc -exec clang-format -i {} \; +find src tools demos -name \*.cpp -exec clang-format -i {} \; + +for f in tests/*.cpp tests/*.c tests/*.cc +do + echo "clang-format -i $f" + clang-format -i $f +done