7676 - name : Self check (unusedFunction)
7777 if : false # TODO: fails with preprocessorErrorDirective - see #10667
7878 run : |
79- ./cppcheck -q --template=selfcheck --error-exitcode=1 --library=cppcheck-lib --library=qt -D__CPPCHECK__ -D__GNUC__ -DQT_VERSION=0x060000 -DQ_MOC_OUTPUT_REVISION=68 -DQT_CHARTS_LIB -DQT_MOC_HAS_STRINGDATA --enable=unusedFunction --exception-handling -rp=. --project=cmake.output/compile_commands.json --suppressions-list=.selfcheck_unused_suppressions --inline-suppr
79+ ./cppcheck -q --template=selfcheck --error-exitcode=1 --library=cppcheck-lib --library=posix --library= qt -D__CPPCHECK__ -D__GNUC__ -DQT_VERSION=0x060000 -DQ_MOC_OUTPUT_REVISION=68 -DQT_CHARTS_LIB -DQT_MOC_HAS_STRINGDATA --enable=unusedFunction --exception-handling -rp=. --project=cmake.output/compile_commands.json --suppressions-list=.selfcheck_unused_suppressions --inline-suppr
8080 env :
8181 DISABLE_VALUEFLOW : 1
8282 UNUSEDFUNCTION_ONLY : 1
@@ -100,7 +100,7 @@ jobs:
100100 # TODO: find a way to report unmatched suppressions without need to add information checks
101101 - name : Self check (unusedFunction / no test)
102102 run : |
103- ./cppcheck -q --template=selfcheck --error-exitcode=1 --library=cppcheck-lib --library=qt -D__CPPCHECK__ -D__GNUC__ -DQT_VERSION=0x060000 -DQ_MOC_OUTPUT_REVISION=68 -DQT_CHARTS_LIB -DQT_MOC_HAS_STRINGDATA --enable=unusedFunction --exception-handling -rp=. --project=cmake.output.notest/compile_commands.json --suppressions-list=.selfcheck_unused_suppressions --inline-suppr
103+ ./cppcheck -q --template=selfcheck --error-exitcode=1 --library=cppcheck-lib --library=posix --library= qt -D__CPPCHECK__ -D__GNUC__ -DQT_VERSION=0x060000 -DQ_MOC_OUTPUT_REVISION=68 -DQT_CHARTS_LIB -DQT_MOC_HAS_STRINGDATA --enable=unusedFunction --exception-handling -rp=. --project=cmake.output.notest/compile_commands.json --suppressions-list=.selfcheck_unused_suppressions --inline-suppr
104104 env :
105105 DISABLE_VALUEFLOW : 1
106106 UNUSEDFUNCTION_ONLY : 1
@@ -119,7 +119,7 @@ jobs:
119119 # TODO: find a way to report unmatched suppressions without need to add information checks
120120 - name : Self check (unusedFunction / no test / no gui)
121121 run : |
122- ./cppcheck -q --template=selfcheck --error-exitcode=1 --library=cppcheck-lib -D__CPPCHECK__ -D__GNUC__ --enable=unusedFunction --exception-handling -rp=. --project=cmake.output.notest_nogui/compile_commands.json --suppressions-list=.selfcheck_unused_suppressions --inline-suppr
122+ ./cppcheck -q --template=selfcheck --error-exitcode=1 --library=cppcheck-lib --library=posix - D__CPPCHECK__ -D__GNUC__ --enable=unusedFunction --exception-handling -rp=. --project=cmake.output.notest_nogui/compile_commands.json --suppressions-list=.selfcheck_unused_suppressions --inline-suppr
123123 env :
124124 DISABLE_VALUEFLOW : 1
125125 UNUSEDFUNCTION_ONLY : 1
@@ -169,7 +169,7 @@ jobs:
169169 - name : Self check (unusedFunction / corpus / no test / callgrind)
170170 run : |
171171 # TODO: fix -rp so the suppressions actually work
172- valgrind --tool=callgrind ./cppcheck --template=selfcheck --error-exitcode=0 --library=cppcheck-lib --library=qt -D__GNUC__ -DQT_VERSION=0x060000 -DQ_MOC_OUTPUT_REVISION=68 -DQT_CHARTS_LIB -DQT_MOC_HAS_STRINGDATA --enable=unusedFunction --exception-handling -rp=. --project=cmake.output.corpus/compile_commands.json --suppressions-list=.selfcheck_unused_suppressions --inline-suppr 2>callgrind.log || (cat callgrind.log && false)
172+ valgrind --tool=callgrind ./cppcheck --template=selfcheck --error-exitcode=0 --library=cppcheck-lib --library=posix --library= qt -D__GNUC__ -DQT_VERSION=0x060000 -DQ_MOC_OUTPUT_REVISION=68 -DQT_CHARTS_LIB -DQT_MOC_HAS_STRINGDATA --enable=unusedFunction --exception-handling -rp=. --project=cmake.output.corpus/compile_commands.json --suppressions-list=.selfcheck_unused_suppressions --inline-suppr 2>callgrind.log || (cat callgrind.log && false)
173173 cat callgrind.log
174174 callgrind_annotate --auto=no > callgrind.annotated.log
175175 head -50 callgrind.annotated.log
0 commit comments