cppcheck icon indicating copy to clipboard operation
cppcheck copied to clipboard

removed `ErrorLogger::reportProgress()` and command-line option `--report-progress`

Open firewave opened this issue 2 years ago • 6 comments

As detailed in https://github.com/danmar/cppcheck/pull/4985#discussion_r1171846635 it doesn't provide much progress and adds unnecessary complexity to the ErrorLogger and CppcheckExecutor.

We should probably remove TokenImpl::mProgressValue as well.

firewave avatar Jul 26 '23 22:07 firewave

As a fix for the democlient it should possibly perform a delayed call to Settings::Terminate() instead which should provide a similar behavior.

I am also open to keeping the option and nop'ing it for now and provide a much better progress implementation later on.

firewave avatar Jul 26 '23 22:07 firewave

This approach goes probably a bit too far. I will revise the changes.

firewave avatar Jul 28 '23 16:07 firewave

as I said.. we have reasons to keep this. maybe you can consider using the reportProgress instead.

danmar avatar Aug 07 '23 14:08 danmar

Yes, this goes in hand with #5288 and https://trac.cppcheck.net/ticket/11248 as it is about progress indication as well as providing interruption points for cancellation (especially if not using threads instead of processes).

Maybe this could even be addressed with the current executor rework I am doing.

firewave avatar Aug 07 '23 16:08 firewave

I will file a ticket about this in the next few days.

firewave avatar Aug 07 '23 17:08 firewave

Seems there already was a ticket about this: https://trac.cppcheck.net/ticket/3450. I also came to some of the same conclusions before even reading it.

firewave avatar Aug 18 '23 11:08 firewave