–-whatisfixed 选项可以生成仅显示在以前缓存的工具报告中发生的错误的报告,从而补充了 –-whatisnew 选项的不足。开发团队或质量保证团队可以使用此选项来跟踪安全错误修复。
以下是使用 –-whatisfixed 以仅显示修复的错误的一个示例:
% codean --whatisfixed a.out STATIC report of a.out showing fixed issues: Compare the latest results against a.out.analyze/history/10:02:05May152013... MEMORY LEAK 1 : 1 block left allocated on heap with a total size of 400 bytes (Warning: Source files have changed. Source code shown below may not be accurate.) sample1() <sample1.c : 20> 17: { 18: global = (int *)malloc(100); 19: int *p = malloc(100*sizeof(int)); 20:=> int *q = malloc(100*sizeof(int)); 21: free(q); PREVISE SUMMARY: 0 fixed error(s), 0 fixed warning(s), 1 fixed leak(s) in total