<div dir="ltr"><div>hi there,<br><div class="gmail_extra"><br></div><div class="gmail_extra">during
the last half year i did re-implemented the `scan-build` perl scripts in python. to make it into the Clang code
base i would like to know what would be the acceptance criteria for such
scripts.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">the current version available from here <<a href="https://github.com/rizsotto/Beye" target="_blank">https://github.com/rizsotto/Beye</a>><br></div><div class="gmail_extra">
<br></div><div class="gmail_extra">- it works, tested on python 2.7, 3.x,</div><div class="gmail_extra">- it has no dependencies other than standard python modules,</div><div class="gmail_extra">- it differs from the current perl implementation in functionality,</div>
<div class="gmail_extra"> - does not generate not-used-attribute files, since analyzer does not report it;</div><div class="gmail_extra"> - does not generate parser reject report, since analyzer does not report it;</div>
<div class="gmail_extra"> - does not check '-isysroot' uniqness;</div><div class="gmail_extra"> - does execute 'clang' binary only if it needed (one time less than current perl);</div><div class="gmail_extra">
- does not copy pre-compiled header (.ghc) files into report directory;</div> - does create compilation database during the analysis;<br></div> - analyzer is run only after the compilation database were created (not during the build);<br><div><div>- it was tested on Linux, FreeBSD and OS X,<br></div><div>- it has functional and unit tests around,<br></div><div>- it is a self contained python package,<br></div><div> - it's decomposed into multiple modules;<br></div><div>- it has more documentation inside than the original implementation.<br></div><div>
<div class="gmail_extra"><br></div>what
format would you like to get it? i'm thinking to create a python
package out of it. (currently it's non python package conform.) but
recently took a look on llvm-lit. which might be a good pattern to
follow. (they keep python module structure, but CMake also plays role to
install those scripts.)
<div class="gmail_extra"><br></div><div class="gmail_extra">regards,</div><div class="gmail_extra">Laszlo</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 20, 2014 at 6:10 PM, Laszlo Nagy <span dir="ltr"><<a href="mailto:rizsotto.mailinglist@gmail.com" target="_blank">rizsotto.mailinglist@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">hi there,<div><br></div><div>it's me again with my favorite topic. ;) coming to the end of the rewrite (of `scan-build` in python) i need some help from native English speakers. i tried my best to explain how it works, but not sure it is understandable for others. please correct my Hungarian English, either on the comments or on the function/variable naming... but any feedback on the code is valued.</div><div><br></div><div>here is the source <<a href="https://github.com/rizsotto/Beye" target="_blank">https://github.com/rizsotto/Beye</a>><br></div><div><br></div><div>please use github to submit those changes/suggestions. create tickets or write comments or send emails. (wanted generate not much noise here. but that's also fine for me. :))</div><div><br></div><div>regards,</div><div>Laszlo</div></div></blockquote></div></div></div>