Skip to content

Commit dbe16c6

Browse files
committed
added --check-library to self-check
1 parent 2a24e2a commit dbe16c6

4 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/CI-unixish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ jobs:
451451
452452
- name: Self check
453453
run: |
454-
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"
454+
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"
455455
cppcheck_options="-D__CPPCHECK__ -DCHECK_INTERNAL -DHAVE_RULES --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml2"
456456
ec=0
457457

.github/workflows/asan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ jobs:
132132
- name: Self check
133133
if: false
134134
run: |
135-
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"
135+
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"
136136
cppcheck_options="-D__CPPCHECK__ -DCHECK_INTERNAL -DHAVE_RULES --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml2"
137137
ec=0
138138
./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
@@ -128,7 +128,7 @@ jobs:
128128
# 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
129129
- name: Self check
130130
run: |
131-
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"
131+
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"
132132
cppcheck_options="-D__CPPCHECK__ -DCHECK_INTERNAL -DHAVE_RULES --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml2"
133133
ec=0
134134
./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)