cppcheck-vs-addin icon indicating copy to clipboard operation
cppcheck-vs-addin copied to clipboard

Add a way to cancel analysis.

Open IOBYTE opened this issue 10 years ago • 4 comments

It would be nice to be able to cancel an analysis in progress. I have various sized projects in my solution and I accidentally started checking the wrong one that takes a very long to complete. I couldn't see any way to stop it.

IOBYTE avatar Mar 08 '14 00:03 IOBYTE

Agree, that this is necessary. For now you can either kill cppcheck process from task manager or start another check on smaller project and this would kill previous check.

Altren avatar Mar 08 '14 00:03 Altren

Just start another check. Press Ctrl + S on any opened file.

VioletGiraffe avatar Mar 08 '14 08:03 VioletGiraffe

With my 1.4.3 built from master (commit a5b1556b5f1ca8cae41bd237971bfaab7554650b), I right-clicked on a source file in Solution Explorer and selected "CPPCheck selected items" and it ran away checking everything, not just that file. It's still running many minutes later, and all cppcheck menus remain disabled. How is it "selecting items"? The list file from the Output window shows that it's doing every file in that project.

Also, when I do run the whole project, how do I exclude a file? It's running a very long time on sqlite.c, a massive C file that's not even C++ and is known to have issues with static analyzers.

SpareSimian avatar Aug 03 '21 17:08 SpareSimian

It's best to exclude it using the list of excluded files and folder in the add-on settings. And, of course, it's not right that it's checking all the files instead of the selected one, I'll take a look.

VioletGiraffe avatar Aug 03 '21 19:08 VioletGiraffe