selfcheck.yml: also run unusedFunction selfcheck without CLI (currently disabled) and GUI sources#6526
Conversation
|
This is to identify code which is only used by the CLI or GUI frontends and partially related to https://trac.cppcheck.net/ticket/12841. But since we not do differentiate between functions with the same name but different arguments this will also reduce the amount of potential conflicts of such function and actually find some completely unused functions. |
| /** set possible usage for all variables */ | ||
| void possibleUsageAll(const std::pair<const Token*, Usage>& functionUsage); | ||
|
|
||
| void print(); |
There was a problem hiding this comment.
It looks like this was never used since its introduction in bd8fb0a.
|
The nocli seems to go too far for now and I will disable it but it seems to have exposed some false negatives (maybe even positives). I will also check all functions if they are actually used. |
unusedFunction selfcheck without CLI and GUI sourcesunusedFunction selfcheck without CLI (currently disabled) and GUI sources
789b0e6 to
95ffeb6
Compare
| TEST_CASE(xmlverinvalid); | ||
| TEST_CASE(doc); | ||
| TEST_CASE(docExclusive); | ||
| TEST_CASE(showtimeSummary); |
There was a problem hiding this comment.
This was uncovered by the still disabled selfcheck with all sources enabled.
No description provided.