cppcheck-vs-addin
cppcheck-vs-addin copied to clipboard
Add a way to cancel analysis.
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.
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.
Just start another check. Press Ctrl + S on any opened file.
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.
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.