File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 22
33SOURCES=$( find $( git rev-parse --show-toplevel) | egrep " \.(cpp|cc|c|h)\$ " )
44
5- CLANG_FORMAT=$( which clang-format-12 )
5+ CLANG_FORMAT=$( which clang-format-18 )
66if [ $? -ne 0 ]; then
77 CLANG_FORMAT=$( which clang-format)
88 if [ $? -ne 0 ]; then
1818 $CLANG_FORMAT ${file} > expected-format
1919 diff -u -p --label=" ${file} " --label=" expected coding style" ${file} expected-format
2020done
21- exit $( $CLANG_FORMAT --output-replacements-xml ${SOURCES} | egrep -c " </replacement>" )
21+ exit $( $CLANG_FORMAT --output-replacements-xml ${SOURCES} | egrep -c " </replacement>" )
Original file line number Diff line number Diff line change 18181919 - name : coding convention
2020 run : |
21- sudo apt-get install -q -y clang-format-12
21+ sudo apt-get install -q -y clang-format-18
2222 sh .ci/check-format.sh
23- shell : bash
23+ shell : bash
You can’t perform that action at this time.
0 commit comments