Skip to content

Commit 87866cd

Browse files
committed
added --check-library to self-check
1 parent 1f58071 commit 87866cd

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

.github/workflows/CI-unixish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ jobs:
537537
538538
- name: Self check
539539
run: |
540-
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"
540+
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 --check-library"
541541
cppcheck_options="-D__CPPCHECK__ -DCHECK_INTERNAL -DHAVE_RULES --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml2"
542542
ec=0
543543

.github/workflows/asan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
- name: Self check
132132
if: false
133133
run: |
134-
selfcheck_options="-q -j$(nproc) --std=c++11 --template=selfcheck --showtime=top5_summary -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"
134+
selfcheck_options="-q -j$(nproc) --std=c++11 --template=selfcheck --showtime=top5_summary -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 --check-library"
135135
cppcheck_options="-D__CPPCHECK__ -DCHECK_INTERNAL -DHAVE_RULES --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml2"
136136
ec=0
137137
./cmake.output/bin/cppcheck $selfcheck_options externals/simplecpp || ec=1

.github/workflows/ubsan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
# TODO: only fail the step on sanitizer issues - since we use processes it will only fail the underlying process which will result in an cppcheckError
128128
- name: Self check
129129
run: |
130-
selfcheck_options="-q -j$(nproc) --std=c++11 --template=selfcheck --showtime=top5_summary -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"
130+
selfcheck_options="-q -j$(nproc) --std=c++11 --template=selfcheck --showtime=top5_summary -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 --check-library"
131131
cppcheck_options="-D__CPPCHECK__ -DCHECK_INTERNAL -DHAVE_RULES --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml2"
132132
ec=0
133133
./cmake.output/bin/cppcheck $selfcheck_options externals/simplecpp || ec=1

.selfcheck_suppressions

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ varid0:gui/projectfile.cpp
66
naming-privateMemberVariable:gui/test/cppchecklibrarydata/testcppchecklibrarydata.h
77
symbolDatabaseWarning:*/moc_*.cpp
88
simplifyUsing:*/moc_*.cpp
9+
checkLibraryNoReturn
910

1011
# warnings in Qt generated code we cannot fix
1112
funcArgNamesDifferent:*/moc_*.cpp
@@ -17,6 +18,13 @@ valueFlowBailout
1718
valueFlowBailoutIncompleteVar
1819
autoNoType
1920

21+
# --check-library suppressions for Qt functions
22+
checkLibraryFunction:gui/*.cpp
23+
checkLibraryFunction:gui/*.h
24+
checkLibraryFunction:gui/temp/ui_*.h
25+
checkLibraryFunction:tools/triage/*.cpp
26+
checkLibraryFunction:tools/triage/temp/ui_*.h
27+
2028
naming-varname:externals/simplecpp/simplecpp.h
2129
naming-privateMemberVariable:externals/simplecpp/simplecpp.h
2230

0 commit comments

Comments
 (0)