<div dir="ltr"><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Ashwin Ganesh</b> <span dir="ltr"><<a href="mailto:ashwingane@gmail.com">ashwingane@gmail.com</a>></span><br>Date: Thu, Apr 7, 2016 at 2:47 PM<br>Subject: Re: [cfe-dev] Query regarding clang development<br>To: George Burgess IV <<a href="mailto:george.burgess.iv@gmail.com">george.burgess.iv@gmail.com</a>><br><br><br><div dir="ltr">Thanks for the inputs , will try them. Initially when I tried building I got "ld terminated with signal 9 error ", after which I increased the swap file sizeThen, it got successfully built once. <div> Next I tried building this plugin as given in <a href="https://kevinaboos.wordpress.com/2013/07/29/clang-tutorial-part-iii-plugin-example/" target="_blank">https://kevinaboos.wordpress.com/2013/07/29/clang-tutorial-part-iii-plugin-example/</a> . Even building a plugin requires building clang executable again? In this case , I received this error, "error: ld terminated with signal 7 [Bus error], core dumped ". Why did this happen?<div><br></div><div>Basically I want to change the checker GenericTaintChecker.cpp into a plugin . Where can i find the required instructions?</div><div><br></div><div>Regards,</div><div>Ashwin</div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 7, 2016 at 7:30 AM, George Burgess IV <span dir="ltr"><<a href="mailto:george.burgess.iv@gmail.com" target="_blank">george.burgess.iv@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>To expand on Anna's comment, in many cases, using Ninja instead of make is as simple as ensuring that Ninja is installed, and adding '-G Ninja' to your cmake line.</div><div>So,</div><div><br></div><div>cmake ../</div><div><br></div><div>becomes</div><div><br></div><div>cmake -G Ninja ../</div><div><br></div><div>And instead of running 'make' to build, you run 'ninja'. I've heard that this can shave off > 10% of build times, so it may be worth your while to look into. :)</div><span><font color="#888888"><div><br></div><div>George</div></font></span><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 6, 2016 at 6:19 PM, Anna Zaks via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</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><blockquote type="cite"><div>On Apr 5, 2016, at 12:13 AM, Ashwin Ganesh via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>> wrote:</div><br><div><div dir="ltr">Hi,<div>      I am a newbie to clang. I am trying to make a few modifications to the already available checkers in the Static Analyzer . Now , to see the reflected changes should I execute '<i>make clang' inside the build directory after every change</i> or is there a easier way to do it?</div></div></div></blockquote><div><br></div></span>You do need to build clang in order to compile your changes for the static analyzer.</div><div>Using ninja builds could be faster. I do not know if we have detailed documentation on using cmake with ninja..</div><div><br></div><div>You’d also need to check your changes by running the regression tests as described in <a href="http://llvm.org/docs/TestingGuide.html" target="_blank">http://llvm.org/docs/TestingGuide.html</a>. It is possible to only run tests in a single folder by running lit directly. All static analysis tests are in tests/Analysis.</div><div><br></div><div>Anna.</div><div><blockquote type="cite"><div><div dir="ltr"><div><br></div><div>Regards,</div><div>Ashwin</div></div>
_______________________________________________<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" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br></div></blockquote></div><br></div><br>_______________________________________________<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/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>
</div></div></div><br></div>