You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After changing source code and saving changes using Ctrl-S in Visual Studio, the cppCheck result page does not show correct content. A second SAVE action (Ctrl-S) is needed to bring up current results. This behavior is misleading / confusing to developers.
Example code: void test1() { char *p = malloc(10); char *q = malloc(10); }
After saving, the result page shows 2 errors (memory leak on p and q).
Now change source code to:
After saving this code, the result page shows 2 errors: "memory leak on q and pp".
Now save a second time, and the result page shows the result: "memory leak on pp and zz".
(note the change in variable name q -> zz).
This result now is stable for all following SAVE actions.
The behavior can be reproduced any time.
Of course, cppCheck should report also memory leaks on all variables, but this will be a separate issue for cppCheck, not for this VS plugin. This issue addresses the caching behavior of the result page only.
Some context data:
VisualStudio 2015 Enterprise
cppcheck-1.72-x64
plugin version: 1.3.2
The text was updated successfully, but these errors were encountered:
After changing source code and saving changes using Ctrl-S in Visual Studio, the cppCheck result page does not show correct content. A second SAVE action (Ctrl-S) is needed to bring up current results. This behavior is misleading / confusing to developers.
Example code:
void test1() { char *p = malloc(10); char *q = malloc(10); }
After saving, the result page shows 2 errors (memory leak on p and q).
Now change source code to:
After saving this code, the result page shows 2 errors: "memory leak on q and pp".
Now save a second time, and the result page shows the result: "memory leak on pp and zz".
(note the change in variable name q -> zz).
This result now is stable for all following SAVE actions.
The behavior can be reproduced any time.
Of course, cppCheck should report also memory leaks on all variables, but this will be a separate issue for cppCheck, not for this VS plugin. This issue addresses the caching behavior of the result page only.
Some context data:
The text was updated successfully, but these errors were encountered: