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

"save all" is handled incorrectly when two or more files are unsaved

Open Dmitry-Me opened this issue 12 years ago • 2 comments

Currently if two or more source files have been edited and not yet saved and "save all" is pressed the documentSaved() handler is invoked once for each of the files and so only the last file analysis output gets displayed in the output window and all other files analysis output is lost. No idea how to fix this at the moment.

Dmitry-Me avatar Jan 23 '14 06:01 Dmitry-Me

Good catch. It's no big deal for me because I have a habit of pressing Ctrl + S after finishing every statement. I don't think this issue can be solved by using documentSaved() callback.

VioletGiraffe avatar Jan 23 '14 07:01 VioletGiraffe

I think there has to be a list of files or projects pending check, instead of always killing the currently in progress check. Each file bundled with its attributes (list of includes, macros, x32/x64 etc.). That should also allow scheduling multiple projects for check at once.

VioletGiraffe avatar Jan 23 '14 10:01 VioletGiraffe