Skip to content

Commit 92130cd

Browse files
committed
added --check-library to selfchecks
1 parent 85583d9 commit 92130cd

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

.selfcheck_suppressions

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
missingIncludeSystem
22
# should not be reported - see #13387
33
checkersReport
4+
checkLibraryNoReturn
45

56
# warnings in Qt generated code we cannot fix
67
funcArgNamesDifferent:*/moc_checkthread.cpp
@@ -26,6 +27,13 @@ autoNoType:tools/triage/mainwindow.cpp
2627
# ticket 11631
2728
templateInstantiation:test/testutils.cpp
2829

30+
# --check-library suppressions for Qt functions
31+
checkLibraryFunction:gui/*.cpp
32+
checkLibraryFunction:gui/*.h
33+
checkLibraryFunction:gui/temp/ui_*.h
34+
checkLibraryFunction:tools/triage/*.cpp
35+
checkLibraryFunction:tools/triage/temp/ui_*.h
36+
2937
naming-varname:externals/simplecpp/simplecpp.h
3038
naming-privateMemberVariable:externals/simplecpp/simplecpp.h
3139

selfcheck.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
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,information --exception-handling --debug-warnings --check-level=exhaustive"
3+
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,information --exception-handling --debug-warnings --check-level=exhaustive --check-library"
44
cppcheck_options="-D__CPPCHECK__ -DCHECK_INTERNAL -DHAVE_RULES --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml2"
55
gui_options="-DQT_VERSION=0x060000 -DQ_MOC_OUTPUT_REVISION=68 -DQT_CHARTS_LIB -DQT_MOC_HAS_STRINGDATA --library=qt"
66
ec=0

selfcheck_san.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
cmake_output="$1"
44
selfcheck_options_extra="$2"
55

6-
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,information --exception-handling --debug-warnings --check-level=exhaustive"
6+
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,information --exception-handling --debug-warnings --check-level=exhaustive --check-library"
77
selfcheck_options="$selfcheck_options $selfcheck_options_extra"
88
cppcheck_options="-D__CPPCHECK__ -DCHECK_INTERNAL -DHAVE_RULES --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml2"
99
qt_options="--library=qt -DQT_VERSION=0x060000 -DQ_MOC_OUTPUT_REVISION=69 -DQT_MOC_HAS_STRINGDATA"

0 commit comments

Comments
 (0)