<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On May 30, 2017, at 3:59 AM, Malhar Thakkar via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">I have an additional query.<div class="">After scan-build completes, it says, <span style="font-variant-ligatures: no-common-ligatures; font-family: Menlo; font-size: 11px;" class=""><b class="">Run '</b></span><span style="font-variant-ligatures: no-common-ligatures; font-family: Menlo; font-size: 11px;" class=""><b class="">scan-view /Users/malharthakkar/Desktop/scan-build-isl/2017-05-30-161222-546-1</b></span><span style="font-variant-ligatures: no-common-ligatures; font-family: Menlo; font-size: 11px;" class=""><b class="">' to examine bug reports</b>.</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><font face="arial, helvetica, sans-serif" class="">When I run the above command, it somehow opens the results which I obtained 4 days ago (look at the dates in the browser window and the terminal in the attached screenshot). Any idea why that is happening?</font></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><font face="arial, helvetica, sans-serif" class="">Also, when I ran scan-build along with -o, only a few files were compiled and analyzed, not the entire codebase (How do I build the entire codebase?).</font></span></div></div></div></blockquote><div><br class=""></div><div>Did you clean the built project before running scan-build again? Since scan-build interposes on calls to the compiler, if the build system doesn’t build a source file then scan-build won’t see it. This is a common pitfall — we should really mention this in the documentation for scan-build!</div><div><br class=""></div><div>Also, don’t forget to run any ./configure script through scan-build as well so you don’t get hard-wired paths to the wrong compiler. <<a href="https://clang-analyzer.llvm.org/scan-build.html#recommended_autoconf" class="">https://clang-analyzer.llvm.org/scan-build.html#recommended_autoconf</a>></div><div><br class=""></div><div>Devin</div><div><br class=""></div></div></body></html>