include GUI test sources in selfchecks#5687
Conversation
5c1de66 to
6493e82
Compare
6493e82 to
9cf2808
Compare
This comment was marked as resolved.
This comment was marked as resolved.
9cf2808 to
5f90b35
Compare
|
I added those as there's a I did suppress the The |
5f90b35 to
e4a0653
Compare
| #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
3c8cfd2
Compare
ce278c3 to
881f529
Compare
881f529 to
5018813
Compare
dabe5ed to
145b119
Compare
|
…s/testprojectfile.cpp`
… selfcheck warning
…/testresultstree.cpp`
|
@chrchr-github Looks like we have false positives when a function is not implemented: |
But it is implemented here: https://github.com/firewave/cppcheck/blob/70e4ea3b850d73f4ed120d54a2b3c637edc79653/gui/projectfile.cpp#L787 |
The GUI tests mock these classes and only implement what is necessary to get them to link. |
|
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. |
There is no warning for this, so not sure what`s going on: |
I will have a look tomorrow. |
|
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. |



No description provided.