<div dir="ltr">you will need the `share` directory content too, otherwise the html report won't work as expected... but the CMakeLists.txt file has an install target, which is a very good reference what you need to install. to use that has an additional benefit: your distribution is going to be very similar to other distributions, so users can use documentation written elsewhere.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 12, 2016 at 1:26 AM, Aleksei Sidorin 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 bgcolor="#FFFFFF" text="#000000">
    <div class="m_8431081746484499331moz-cite-prefix">Hello Martin!<br>
      <br>
      11.11.2016 16:48, Martin J. O'Riordan via cfe-dev пишет:<br>
    </div><span class="">
    <blockquote type="cite">
      
      
      
      <div class="m_8431081746484499331WordSection1">
        <p class="MsoNormal"><span>I am working on
            adding ‘</span><span>scan-build</span><span>’ to the set of
            tools we include with our release of ‘</span><span>clang</span><span>’, and trying
            to determine the minimal set of components needed to be able
            to successfully use ‘</span><span>scan-build</span><span>’.  The
            documentation for this is fairly thin, so there are many
            things I am having to learn.<u></u><u></u></span></p>
        <p class="MsoNormal"><span><u></u> <u></u></span></p>
        <p class="MsoNormal"><span>Currently we
            just provide the compiler itself, along with the headers and
            libraries for our SHAVE target.  I would like to add a lot
            of the additional tools and utilities that CLang/LLVM
            provide with future versions, ‘</span><span>scan-build</span><span>’ is one of
            these, and ‘</span><span>clang-tidy</span><span>’, etc., but
            not a complete set.<u></u><u></u></span></p>
        <p class="MsoNormal"><span><u></u> <u></u></span></p>
        <p class="MsoNormal"><span>In addition to
            the ‘</span><span>scan-build</span><span>’ Perl script
            itself, I also need the ‘</span><span>ccc-analyzer</span><span>’ and ‘</span><span>c++-analyzer</span><span>’ Perl scripts,
            and this appears to run without error; but I would like to
            know are their other components that I need to ensure that
            it is fully functional?</span></p>
      </div>
    </blockquote></span>
    As I remember, Perl scan-build doesn't have any additional
    dependencies.<span class=""><br>
    <blockquote type="cite">
      <div class="m_8431081746484499331WordSection1">
        <p class="MsoNormal"><span><u></u><u></u></span></p>
        <p class="MsoNormal"><span><u></u> <u></u></span></p>
        <p class="MsoNormal"><span>I would like to
            know what is the “core set” of analysers?  I listed the full
            set of analysers in ‘</span><span>clang</span><span>’ v3.9.0 and
            some of these names are prefixed with ‘</span><span>core.</span><span>’ so I presume
            these are the ones that comprise the core set?  </span></p>
      </div>
    </blockquote></span>
    The "core" set is responsible for basic modelling of some functions
    in path-sensitive mode, they are not the analyzer core itself.
    Shortly, analyzer has two kinds of checkers - AST/CFG based (fast)
    and path-sensitive (slow but more powerful). If you need any
    path-sensitive checkers, you should also enable "core" checkers for
    more precise modelling.<br>
    <br>
    // TODO: enable "core" automatically in such cases?<span class=""><br>
    <blockquote type="cite">
      <div class="m_8431081746484499331WordSection1">
        <p class="MsoNormal"><span>When enabling
            others I presume I have to add a comma-separated list to the
            ‘</span><span>-enable-checker</span><span>’ option, for
            example ‘</span><span>debug.Stats,unix.Malloc</span><span>’.  The names
            in the list of checks are formed with separating dot
            characters, does selecting something like ‘</span><span>security</span><span>’ enable all
            the checkers in the ‘</span><span>security.*</span><span>’ group, or do
            I have to enable them one at a time?</span></p>
      </div>
    </blockquote></span>
    To enable a full package, you should just point it. Example:
    "-enable-checker core,security"<span class=""><br>
    <blockquote type="cite">
      <div class="m_8431081746484499331WordSection1">
        <p class="MsoNormal"><span><u></u><u></u></span></p>
        <p class="MsoNormal"><span><u></u> <u></u></span></p>
        <p class="MsoNormal"><span>Sorry if this
            is all answered in some part of the documentation I haven’t
             found, and please point me at it.</span></p>
      </div>
    </blockquote></span>
    You can find some additional information on
    <a class="m_8431081746484499331moz-txt-link-freetext" href="http://clang-analyzer.llvm.org" target="_blank">http://clang-analyzer.llvm.org</a><br>
    <blockquote type="cite">
      <div class="m_8431081746484499331WordSection1">
        <p class="MsoNormal"><span><u></u><u></u></span></p>
        <p class="MsoNormal"><span><u></u> <u></u></span></p>
        <p class="MsoNormal"><span>Thanks,<u></u><u></u></span></p>
        <p class="MsoNormal"><span><u></u> <u></u></span></p>
        <p class="MsoNormal"><span>           
            MartinO<u></u><u></u></span></p>
        <p class="MsoNormal"><span><u></u> <u></u></span></p>
      </div>
      <br>
      <fieldset class="m_8431081746484499331mimeAttachmentHeader"></fieldset>
      <br>
      <pre>______________________________<wbr>_________________
cfe-dev mailing list
<a class="m_8431081746484499331moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>
<a class="m_8431081746484499331moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="HOEnZb"><font color="#888888">
    <br>
    <p><br>
    </p>
    <pre class="m_8431081746484499331moz-signature" cols="72">-- 
Best regards,
Aleksei Sidorin
Software Engineer, 
IMSWL-IMCG, SRR, Samsung Electronics
</pre>
  </font></span></div>

<br>______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">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>
<br></blockquote></div><br></div>