Skip to content

Commit fbf9945

Browse files
author
shenxianpeng
committed
Update runchecks.sh
1 parent 244ba7a commit fbf9945

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

runchecks.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ echo "Performing checkup:"
2828
clang-tidy --version
2929
clang-tidy *.c *.h *.cpp *.hpp *.C *.cc *.CPP *.c++ *.cp *.cxx -checks=boost-*,bugprone-*,performance-*,readability-*,portability-*,modernize-*,clang-analyzer-cplusplus-*,clang-analyzer-*,cppcoreguidelines-* > clang-tidy-report.txt
3030

31-
clang-format --style=llvm -i *.c *.h *.cpp *.hpp *.C *.cc *.CPP *.c++ *.cp *.cxx > clang-format-report.txt
31+
# clang-format --style=llvm -i *.c *.h *.cpp *.hpp *.C *.cc *.CPP *.c++ *.cp *.cxx > clang-format-report.txt
32+
for i in "${URLS[@]}"
33+
do
34+
filename=`basename $i`
35+
clang-format --dry-run -Werror $filename || echo "File: $filename not formatted!" >> clang-format-report.txt
36+
done
3237

3338
cppcheck --enable=all --std=c++11 --language=c++ --output-file=cppcheck-report.txt *
3439

0 commit comments

Comments
 (0)