Uh oh!
There was an error while loading. Please reload this page.
include GUI test sources in selfchecks - #5687
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
I added those as there's a I did suppress the The |
| #include "addoninfo.h" | ||
| #include "importproject.h" | ||
| // cppcheck-suppress-begin uninitMemberVar | ||
| #include "platform.h" |
There was a problem hiding this comment.
I need to suppress all the warnings from an include. I would expect this to work but it doesn't as it was probably not intended to be used that way. I will file a ticket about it.
There was a problem hiding this comment.
I filed https://trac.cppcheck.net/ticket/14219 about being able to suppress the uninitMemberVar warnings per implementation
13d7da2 to
3c8cfd2Comparece278c3 to
881f529Comparedabe5ed to
145b119Compare…s/testprojectfile.cpp`
… selfcheck warning
…/testresultstree.cpp`
firewave
commented
May 17, 2026
@chrchr-github Looks like we have false positives when a function is not implemented: |
chrchr-github
commented
May 17, 2026
But it is implemented here: https://github.com/firewave/cppcheck/blob/70e4ea3b850d73f4ed120d54a2b3c637edc79653/gui/projectfile.cpp#L787 |
firewave
commented
May 17, 2026
The GUI tests mock these classes and only implement what is necessary to get them to link. |
firewave
commented
May 17, 2026
So we have drive-by detection of https://trac.cppcheck.net/ticket/10670 now - so hopefully we should be able to package that into a separate check. |
chrchr-github
commented
May 17, 2026
There is no warning for this, so not sure what`s going on: |
firewave
commented
May 17, 2026
I will have a look tomorrow. |
firewave
commented
May 18, 2026
The warnings originate from And in this case it is in intentional since the parameters are not being used (I possibly pointed out this case in the PR which introduced these warnings). These warnings also cannot be properly suppressed because they are reported at the declaration and thus the annotation needs to be added in the header. This is another case where we need to report them on the implementation instead. This also makes sense in the case that there might be various implementations of the functions which might not all experience the same issue. |
firewave
commented
May 19, 2026
I filed https://trac.cppcheck.net/ticket/14760 about it. |



No description provided.