From this ticket https://trac.cppcheck.net/ticket/8084 i see that it is currently not possible to configure overloaded functions.
I tried it nonetheless. But with a configuration like this only the last function configuration seems to be used:
cppcheck does not complain that the function is not configured, but seems to ignore the configuration somehow.
I thought "any" means any number/count of parameters, but it seems to work in a different way.
There is no error message that the return value is not used for code like this:
From this ticket https://trac.cppcheck.net/ticket/8084 i see that it is currently not possible to configure overloaded functions.
I tried it nonetheless. But with a configuration like this only the last function configuration seems to be used:
I expected this to not work so i thought i try a minimal approach:
cppcheck does not complain that the function is not configured, but seems to ignore the configuration somehow.
I thought "any" means any number/count of parameters, but it seems to work in a different way.
There is no error message that the return value is not used for code like this:
When i add an entry like
the error is found.
But for code like
i have to add
but then the error above is no longer found (which makes sense).
I'm not sure if i am missing something or if this is simply not possible at the moment.
I think this is a limit right now.
we should add a way to configure overloaded methods properly.
I am also curious on how overloaded functions will be properly handled by this software.
Would you like to reuse any approaches from other information sources?