Skip to content

Commit fb177d8

Browse files
authored
process all externals in selfchecks (danmar#6880)
1 parent ebe0e55 commit fb177d8

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

.github/workflows/CI-unixish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,8 @@ jobs:
539539
exit $ec
540540
fi
541541
542-
# self check simplecpp
543-
./cppcheck $selfcheck_options externals/simplecpp || ec=1
542+
# self check externals
543+
./cppcheck $selfcheck_options externals || ec=1
544544
# self check lib/cli
545545
mkdir b1
546546
./cppcheck $selfcheck_options $cppcheck_options --cppcheck-build-dir=b1 --addon=naming.json cli || ec=1

.github/workflows/asan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143
selfcheck_options="-q -j$(nproc) --std=c++11 --template=selfcheck --showtime=file-total -D__GNUC__ --error-exitcode=1 --inline-suppr --suppressions-list=.selfcheck_suppressions --library=gnu --inconclusive --enable=style,performance,portability,warning,missingInclude --exception-handling --debug-warnings --check-level=exhaustive"
144144
cppcheck_options="-D__CPPCHECK__ -DCHECK_INTERNAL -DHAVE_RULES --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml2"
145145
ec=0
146-
./cmake.output/bin/cppcheck $selfcheck_options externals/simplecpp || ec=1
146+
./cmake.output/bin/cppcheck $selfcheck_options externals || ec=1
147147
./cmake.output/bin/cppcheck $selfcheck_options $cppcheck_options --addon=naming.json cli || ec=1
148148
./cmake.output/bin/cppcheck $selfcheck_options $cppcheck_options --addon=naming.json --enable=internal lib || ec=1
149149
./cmake.output/bin/cppcheck $selfcheck_options $cppcheck_options -DQT_VERSION=0x060000 -DQ_MOC_OUTPUT_REVISION=68 -DQT_CHARTS_LIB -DQT_MOC_HAS_STRINGDATA --library=qt --addon=naming.json -Icmake.output/gui -Igui gui/*.cpp cmake.output/gui/*.cpp || ec=1

.github/workflows/tsan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ jobs:
146146
selfcheck_options="$selfcheck_options --executor=thread"
147147
cppcheck_options="-D__CPPCHECK__ -DCHECK_INTERNAL -DHAVE_RULES --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml2"
148148
ec=0
149-
./cmake.output/bin/cppcheck $selfcheck_options externals/simplecpp || ec=1
149+
./cmake.output/bin/cppcheck $selfcheck_options externals || ec=1
150150
./cmake.output/bin/cppcheck $selfcheck_options $cppcheck_options --addon=naming.json cli || ec=1
151151
./cmake.output/bin/cppcheck $selfcheck_options $cppcheck_options --addon=naming.json --enable=internal lib || ec=1
152152
./cmake.output/bin/cppcheck $selfcheck_options $cppcheck_options -DQT_VERSION=0x060000 -DQ_MOC_OUTPUT_REVISION=68 -DQT_CHARTS_LIB -DQT_MOC_HAS_STRINGDATA --library=qt --addon=naming.json -Icmake.output/gui -Igui gui/*.cpp cmake.output/gui/*.cpp || ec=1

.github/workflows/ubsan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
selfcheck_options="-q -j$(nproc) --std=c++11 --template=selfcheck --showtime=file-total -D__GNUC__ --error-exitcode=1 --inline-suppr --suppressions-list=.selfcheck_suppressions --library=gnu --inconclusive --enable=style,performance,portability,warning,missingInclude --exception-handling --debug-warnings --check-level=exhaustive"
141141
cppcheck_options="-D__CPPCHECK__ -DCHECK_INTERNAL -DHAVE_RULES --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml2"
142142
ec=0
143-
./cmake.output/bin/cppcheck $selfcheck_options externals/simplecpp || ec=1
143+
./cmake.output/bin/cppcheck $selfcheck_options externals || ec=1
144144
./cmake.output/bin/cppcheck $selfcheck_options $cppcheck_options --addon=naming.json cli || ec=1
145145
./cmake.output/bin/cppcheck $selfcheck_options $cppcheck_options --addon=naming.json --enable=internal lib || ec=1
146146
./cmake.output/bin/cppcheck $selfcheck_options $cppcheck_options -DQT_VERSION=0x060000 -DQ_MOC_OUTPUT_REVISION=68 -DQT_CHARTS_LIB -DQT_MOC_HAS_STRINGDATA --library=qt --addon=naming.json -Icmake.output/gui -Igui gui/*.cpp cmake.output/gui/*.cpp || ec=1

.selfcheck_suppressions

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,16 @@ autoNoType
2020
naming-varname:externals/simplecpp/simplecpp.h
2121
naming-privateMemberVariable:externals/simplecpp/simplecpp.h
2222

23-
# these warnings need to be addressed upstream
23+
valueFlowMaxIterations:externals/tinyxml2/tinyxml2.cpp
24+
25+
# TODO: these warnings need to be addressed upstream
2426
uninitMemberVar:externals/tinyxml2/tinyxml2.h
2527
noExplicitConstructor:externals/tinyxml2/tinyxml2.h
2628
missingOverride:externals/tinyxml2/tinyxml2.h
2729
invalidPrintfArgType_sint:externals/tinyxml2/tinyxml2.h
28-
naming-privateMemberVariable:externals/tinyxml2/tinyxml2.h
30+
naming-privateMemberVariable:externals/tinyxml2/tinyxml2.h
31+
functionStatic:externals/tinyxml2/tinyxml2.h
32+
invalidPrintfArgType_uint:externals/tinyxml2/tinyxml2.cpp
33+
funcArgNamesDifferent:externals/tinyxml2/tinyxml2.cpp
34+
nullPointerRedundantCheck:externals/tinyxml2/tinyxml2.cpp
35+
knownConditionTrueFalse:externals/tinyxml2/tinyxml2.cpp

0 commit comments

Comments
 (0)