Skip to content

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

Closed
firewave wants to merge 1 commit into
cppcheck-opensource:mainfrom
firewave:reportprogress
Closed

removed ErrorLogger::reportProgress() and command-line option --report-progress#5269
firewave wants to merge 1 commit into
cppcheck-opensource:mainfrom
firewave:reportprogress

Conversation

@firewave

@firewavefirewave commented Jul 26, 2023

Copy link
Copy Markdown
Collaborator

As detailed in #4985 (comment) it doesn't provide much progress and adds unnecessary complexity to the ErrorLogger and CppcheckExecutor.

We should probably remove TokenImpl::mProgressValue as well.

@firewave

Copy link
Copy Markdown
CollaboratorAuthor

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

Copy link
Copy Markdown
CollaboratorAuthor

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

@danmar

Copy link
Copy Markdown
Collaborator

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

@firewave

Copy link
Copy Markdown
CollaboratorAuthor

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.

@firewavefirewave mentioned this pull request Aug 7, 2023
@firewave

Copy link
Copy Markdown
CollaboratorAuthor

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

@firewave

Copy link
Copy Markdown
CollaboratorAuthor

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

Copy link
Copy Markdown
CollaboratorAuthor

Closing as this was made obsolete by #5658 and #5353.

@firewave
firewave deleted the reportprogress branch September 16, 2024 10:54
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@firewave@danmar