<div dir="ltr">Thank you Dr. Devin. That really helped clarify my query regarding scan-build. <div>But, I still don't understand why scan-view shows older results even after specifying the correct directory.</div><div><br></div><div>Like mentioned in my previous email, <b style="font-family:Menlo;font-size:11px;font-variant-ligatures:no-common-ligatures">scan-view /Users/malharthakkar/Desktop/<wbr>scan-build-isl/2017-05-30-<wbr>161222-546-1 </b><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">opens a directory which was created on 26th of May when it should've opened the one created today (i.e., 30th of May).</font></span></div><div><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">Thank you.</font></span></div><div><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">Regards,</font></span></div><div><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">Malhar</font></span></div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aY3MxM2IxMDMxQGlpdGguYWMuaW4%3D&type=zerocontent&guid=c1264ff0-b8e2-474c-9072-86a145538dad"><font color="#ffffff" size="1">ᐧ</font></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 30, 2017 at 9:57 PM, Devin Coughlin <span dir="ltr"><<a href="mailto:dcoughlin@apple.com" target="_blank">dcoughlin@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><span class=""><blockquote type="cite"><div>On May 30, 2017, at 3:59 AM, Malhar Thakkar via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>> wrote:</div><br class="m_-2908296477482122008Apple-interchange-newline"><div><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">I have an additional query.<div>After scan-build completes, it says, <span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;font-size:11px"><b>Run '</b></span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;font-size:11px"><b>scan-view /Users/malharthakkar/Desktop/<wbr>scan-build-isl/2017-05-30-<wbr>161222-546-1</b></span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;font-size:11px"><b>' to examine bug reports</b>.</span></div><div><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">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><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">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></div></span><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></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" target="_blank">https://clang-analyzer.llvm.<wbr>org/scan-build.html#<wbr>recommended_autoconf</a>></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Devin</div><div><br></div></font></span></div></div></blockquote></div><br></div>