<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 31, 2017 at 6:33 PM, Artem Dergachev <span dir="ltr"><<a href="mailto:noqnoqneo@gmail.com" target="_blank">noqnoqneo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This seems mysterious and i couldn't immediately reproduce it. Could you check that the port you're connecting to with your browser (eg. <a href="http://127.0.0.1:8181" rel="noreferrer" target="_blank">http://127.0.0.1:8181</a>) matches the port scan-view dumps on the command line (eg.<br>
<br>
$ scan-view /tmp/scan-build-2017-05-31-155<wbr>455-89354-1<br>
Starting scan-view at: <a href="http://127.0.0.1:8181" rel="noreferrer" target="_blank">http://127.0.0.1:8181</a><br>
Use Ctrl-C to exit.<br>
<br>
)?<br></blockquote><div><br></div><div>It is evident from the screenshot that I sent in one of my previous emails that both the ports (seen in the browser and the command line) are the same. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
If nothing helps, i'd probably suggest, as a workaround, that you can open index.html from the results directory directly into your browser and it'd be the same thing just without an intermediate web server running on your machine.</blockquote><div><br></div><div>Yes, this works. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
30/05/2017 7:44 PM, Malhar Thakkar via cfe-dev wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Thank you Dr. Devin. That really helped clarify my query regarding scan-build.<br>
But, I still don't understand why scan-view shows older results even after specifying the correct directory.<br>
<br></span>
Like mentioned in my previous email, *scan-view /Users/malharthakkar/Desktop/s<wbr>can-build-isl/2017-05-30-16122<wbr>2-546-1 *opens a directory which was created on 26th of May when it should've opened the one created today (i.e., 30th of May).<br>
<br>
Thank you.<br>
<br>
<br>
Regards,<br>
Malhar<br>
ᐧ<span class=""><br>
<br>
On Tue, May 30, 2017 at 9:57 PM, Devin Coughlin <<a href="mailto:dcoughlin@apple.com" target="_blank">dcoughlin@apple.com</a> <mailto:<a href="mailto:dcoughlin@apple.com" target="_blank">dcoughlin@apple.com</a>>> wrote:<br>
<br>
<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
On May 30, 2017, at 3:59 AM, Malhar Thakkar via cfe-dev<br></span><span class="">
<<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a> <mailto:<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><wbr>>> wrote:<br>
<br>
I have an additional query.<br></span>
After scan-build completes, it says, *Run '**scan-view<br>
/Users/malharthakkar/Desktop/s<wbr>can-build-isl/2017-05-30-16122<wbr>2-546-1**'<br>
to examine bug reports*.<span class=""><br>
When I run the above command, it somehow opens the results which<br>
I obtained 4 days ago (look at the dates in the browser window<br>
and the terminal in the attached screenshot). Any idea why that<br>
is happening?<br>
Also, when I ran scan-build along with -o, only a few files were<br>
compiled and analyzed, not the entire codebase (How do I build<br>
the entire codebase?).<br>
</span></blockquote><span class="">
<br>
Did you clean the built project before running scan-build again?<br>
Since scan-build interposes on calls to the compiler, if the build<br>
system doesn’t build a source file then scan-build won’t see it.<br>
This is a common pitfall — we should really mention this in the<br>
documentation for scan-build!<br>
<br>
Also, don’t forget to run any ./configure script through<br>
scan-build as well so you don’t get hard-wired paths to the wrong<br>
compiler.<br>
<<a href="https://clang-analyzer.llvm.org/scan-build.html#recommended_autoconf" rel="noreferrer" target="_blank">https://clang-analyzer.llvm.o<wbr>rg/scan-build.html#recommended<wbr>_autoconf</a><br></span>
<<a href="https://clang-analyzer.llvm.org/scan-build.html#recommended_autoconf" rel="noreferrer" target="_blank">https://clang-analyzer.llvm.o<wbr>rg/scan-build.html#recommended<wbr>_autoconf</a>>><br>
<br>
Devin<span class=""><br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
</span></blockquote>
<br>
</blockquote></div><br></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=3958ff35-1177-4330-8c9d-cbf9782e9c7c"><font color="#ffffff" size="1">ᐧ</font></div>