Skip to content

Commit bc170b8

Browse files
committed
added --check-library to self-check
1 parent bf6ae27 commit bc170b8

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
@@ -533,7 +533,7 @@ jobs:
533533
534534
- name: Self check
535535
run: |
536-
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"
536+
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"
537537
cppcheck_options="-D__CPPCHECK__ -DCHECK_INTERNAL -DHAVE_RULES --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml2"
538538
ec=0
539539

.github/workflows/asan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
- name: Self check
131131
if: false
132132
run: |
133-
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"
133+
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"
134134
cppcheck_options="-D__CPPCHECK__ -DCHECK_INTERNAL -DHAVE_RULES --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml2"
135135
ec=0
136136
./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
@@ -126,7 +126,7 @@ jobs:
126126
# 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
127127
- name: Self check
128128
run: |
129-
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"
129+
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"
130130
cppcheck_options="-D__CPPCHECK__ -DCHECK_INTERNAL -DHAVE_RULES --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml2"
131131
ec=0
132132
./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)