<div dir="ltr"><div>Hi!<br><br></div><div>I think one of the long term goals of the Static Analyzer is to remove the current HTML. The recommended way to view path sensitive reports, however, is to use an IDE or a viewer that support highlighting execution paths. It would be strange that once the HTML output is removed the static analyzer will not have a recommended view method inside the clang repository. I don't know whether this is a concern, but it something that is worth to consider.<br><br></div><div>Regards,<br></div><div>Gábor<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 15 September 2016 at 11:38, Orbán György 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">Hi,<br>
<br>
During the review a question was raised where should we put the<br>
CodeChecker source code.<br>
It has no strong revision lock to clang or clang-tidy.<br>
I would like to ask the community where should we put the source code?<br>
Should it go under the clang-tools-extra or kept under a separate<br>
repository under the LLVM umbrella or do you have any other idea?<br>
<br>
Br,<br>
Gyorgy<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Aug 31, 2016 at 11:32 AM, Orbán György <<a href="mailto:o.gyorgy@gmail.com">o.gyorgy@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> The first codechecker patch including the core modules, documentation<br>
> and unit tests is available here: <a href="https://reviews.llvm.org/D24040" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D24040</a><br>
> After the review is done, the second patch will contain the functional tests.<br>
> The infrastructure dependencies for testing should be discussed. Right<br>
> now Travis CI <a href="https://travis-ci.org/Ericsson/codechecker" rel="noreferrer" target="_blank">https://travis-ci.org/<wbr>Ericsson/codechecker</a> is triggered<br>
> for every commit and pull request to run the unit and functional tests<br>
> on Linux and OSX.<br>
> The third patch will contain the web UI.<br>
><br>
> Any feedback is appreciated!<br>
><br>
> Br,<br>
> Gyorgy<br>
><br>
> On Mon, Apr 25, 2016 at 6:29 PM, Alexander Kornienko via cfe-dev<br>
> <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br>
>> Fair enough. That makes sense to me. Thank you for the explanation! I'm glad<br>
>> the tool is being developed whether in its own repository or as a part of<br>
>> the llvm project.<br>
>><br>
>> On Apr 25, 2016 18:22, "Anna Zaks" <<a href="mailto:ganna@apple.com">ganna@apple.com</a>> wrote:<br>
>>><br>
>>><br>
>>> On Apr 25, 2016, at 8:30 AM, Alexander Kornienko <<a href="mailto:alexfh@google.com">alexfh@google.com</a>><br>
>>> wrote:<br>
>>><br>
>>> (having dug the e-mail from the bottom of my inbox)<br>
>>><br>
>>> I certainly like the idea of having an open-source web-based results<br>
>>> browser for clang-tidy and clang static analyzer results. I like the<br>
>>> features of CodeChecker (issue browsing, suppression, diffs). And I can<br>
>>> suggest more potentially useful features like:<br>
>>>   * code-centric browsing of the issues (with directory view showing<br>
>>> aggregate numbers of issues in each file/subdirectory and a file view<br>
>>> showing all issues in the file in a compact form - without execution paths);<br>
>>>   * an easy way to apply fixes for a subset of issues in a file /<br>
>>> directory.<br>
>>><br>
>>> I'm not sure though, if integrating CodeChecker source code to the LLVM<br>
>>> project brings a lot of benefits to the CodeChecker developers and/or users.<br>
>>> I don't have any objections, I just don't understand at this point, what are<br>
>>> you expecting to achieve by moving the code to LLVM.<br>
>>><br>
>>><br>
>>> The benefit to the CodeChecker team is that they will gain more visibility<br>
>>> (both in terms of users and fellow developers).<br>
>>> The benefit to LLVM is that we could gain a much better issue viewing and<br>
>>> triaging tool than what we have now. Ex: my hope is that CodeChecker would<br>
>>> replace scan-view.<br>
>>><br>
>>> Anna.<br>
>>><br>
>>> On Fri, Mar 4, 2016 at 1:10 PM, György Orbán <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>><br>
>>> wrote:<br>
>>>><br>
>>>> Hi,<br>
>>>><br>
>>>> We started to restructure and cleanup our source code for a better<br>
>>>> integration with the current lit testing environment in llvm/clang.<br>
>>>> After we are done we can start to merge the source in.<br>
>>>><br>
>>>> On 03/02/2016 06:42 PM, Anna Zaks wrote:<br>
>>>>><br>
>>>>> Adding CodeChecker infrastructure would be very valuable to those who<br>
>>>>> use clang for bug finding. It provides a single place to view the bugs<br>
>>>>> reported by different tools such as the static analyzer and clang-tidy. The<br>
>>>>> ability to track bugs over time and cutting a baseline so that only the new<br>
>>>>> bugs are reported is important for large projects that cannot address all of<br>
>>>>> the issues at once.<br>
>>>>><br>
>>>>> Let’s proceed with merging it in. Please, split commits into incremental<br>
>>>>> logical chunks.<br>
>>>>> (<a href="http://llvm.org/docs/DeveloperPolicy.html#incremental-development" rel="noreferrer" target="_blank">http://llvm.org/docs/<wbr>DeveloperPolicy.html#<wbr>incremental-development</a>)<br>
>>>>><br>
>>>>>> On Feb 23, 2016, at 2:10 AM, György Orbán via cfe-dev<br>
>>>>>> <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br>
>>>>>><br>
>>>>>> Hi,<br>
>>>>>><br>
>>>>>> We would like to add CodeChecker<br>
>>>>>> (<a href="https://github.com/Ericsson/codechecker" rel="noreferrer" target="_blank">https://github.com/Ericsson/<wbr>codechecker</a>) analyzer infrastructure.<br>
>>>>>><br>
>>>>>> This is an alternative tool to scan-build with extended functionality.<br>
>>>>>> Some of the main features are: track issues over time, suppress false<br>
>>>>>> positives, detect new issues by comparing multiple analyzer run results,<br>
>>>>>> view and compare results in a web browser or in the command line. A<br>
>>>>>> more detailed feature list can be found below (*).<br>
>>>>>> The analyzer infrastructure is built in a way that integrating a new<br>
>>>>>> analyzer can be easily done.<br>
>>>>>> We are developing a tool which can be used easily by the developers or<br>
>>>>>> by automated continuous integration tools and view the results from multiple<br>
>>>>>> analyzers in a common way.<br>
>>>>>> We think it would serve as a good base for displaying and tracking bugs<br>
>>>>>> that can be detected by the other clang tools such as clang-tidy which is<br>
>>>>>> already supported.<br>
>>>>>><br>
>>>>>> For example, you can find the analysis results of the LLVM code 3.6.2<br>
>>>>>> and 3.7.1 here: <a href="http://modelserver.inf.elte.hu:5000" rel="noreferrer" target="_blank">http://modelserver.inf.elte.<wbr>hu:5000</a><br>
>>>>>><br>
>>>>>> Main questions to the community:<br>
>>>>>> 0. Does the Clang community like the idea?<br>
>>>>>> 1. CodeChecker has some 3rd party dependencies see below (**), are they<br>
>>>>>> acceptable?<br>
>>>>>> 2. Is the community satisfied with the CodeChecker name?<br>
>>>>><br>
>>>>> Unless the name is a blocker on your side, I’d like to discuss it later<br>
>>>>> once we see what the interface looks like. Frankly, I am not a fan of this<br>
>>>>> name sine it’s very ambiguous.<br>
>>>><br>
>>>> I do not think it is a blocker, we can discuss it later.<br>
>>>>>><br>
>>>>>> Integration plan:<br>
>>>>>> 0. CodeChecker should use scan-build.py (OSX support) to generate the<br>
>>>>>> compilation database instead of the current LD_PRELOAD technique<br>
>>>><br>
>>>> Should we implement this feature (with scan-build.py intercept) before we<br>
>>>> merge our code base or after?<br>
>>>><br>
>>>>>> 1. Migrate CodeChecker testing infrastructure to the current LLVM<br>
>>>>>> testing infrastructure<br>
>>>>>><br>
>>>>>> (*) Most notably it extends the current tool set with the following<br>
>>>>>> features:<br>
>>>>>> - stores the result of multiple large analysis run results efficiently<br>
>>>>>> (opposed to scan-build/scan-view static htmls)<br>
>>>>>> - run multiple analyzers, currently Clang Static Analyzer and<br>
>>>>>> Clang-Tidy is supported<br>
>>>>>> - dynamic web based defect viewer (instead of static html)<br>
>>>>>> - a SQLite/PostgreSQL based defect storage & management (both are<br>
>>>>>> optional, results can be shown on standard output in quickcheck mode)<br>
>>>>>> - update analyzer results only for modified files (depends on the build<br>
>>>>>> system)<br>
>>>>>> - compare analysis results (new/resolved/unresolved bugs compared to a<br>
>>>>>> baseline)<br>
>>>>>> - filter analysis results (checker name, severity, source file name<br>
>>>>>> ...)<br>
>>>>>> - skip analysis in specific source directories if required<br>
>>>>>> - suppression of false positives (in config file or in the source)<br>
>>>>>> - Thrift API based server-client model for storing bugs and viewing<br>
>>>>>> results.<br>
>>>>>> - It is possible to connect multiple bug viewers. Currently a web-based<br>
>>>>>> viewer and a command line viewer are provided.<br>
>>>>>>    (command line client is the recommended way to connect into<br>
>>>>>> Continuous Integration loops)<br>
>>>>>><br>
>>>>>> Command line examples of usage can be found here:<br>
>>>>>> <a href="https://github.com/Ericsson/codechecker/blob/master/docs/usage.md" rel="noreferrer" target="_blank">https://github.com/Ericsson/<wbr>codechecker/blob/master/docs/<wbr>usage.md</a><br>
>>>>>><br>
>>>>>> CodeChecker supports multiple use cases:<br>
>>>>>> - Small projects/several source files (quick feedback)<br>
>>>>>>      No database is used, analysis results are shown in on the command<br>
>>>>>> line only<br>
>>>>>> - Medium size projects (~500 files)<br>
>>>>>>      Results are stored in SQLite/PostgreSQL database and can be viewed<br>
>>>>>> from command line or web viewer clients<br>
>>>>>> - Large size projects (>500 files)<br>
>>>>>>      Results are stored in PostgreSQL database and can be viewed from<br>
>>>>>> command line or web viewer clients<br>
>>>>>><br>
>>>>>> There are currently discussions about analyzer tool support in multiple<br>
>>>>>> email threads:<br>
>>>>>><br>
>>>>>><br>
>>>>>> <a href="http://clang-developers.42468.n3.nabble.com/Idea-for-better-invoking-static-analysis-via-command-line-td4049670.html" rel="noreferrer" target="_blank">http://clang-developers.42468.<wbr>n3.nabble.com/Idea-for-better-<wbr>invoking-static-analysis-via-<wbr>command-line-td4049670.html</a><br>
>>>>>><br>
>>>>>> <a href="http://clang-developers.42468.n3.nabble.com/Proposal-Integrate-static-analysis-test-suites-td4048967.html" rel="noreferrer" target="_blank">http://clang-developers.42468.<wbr>n3.nabble.com/Proposal-<wbr>Integrate-static-analysis-<wbr>test-suites-td4048967.html</a><br>
>>>>>><br>
>>>>>> CodeChecker provides solutions for many problems discussed there:<br>
>>>>>><br>
>>>>>> - Problem: Different analyzers provide different output formats (Clang<br>
>>>>>> Static Analyzer provides plist/html/command line, Clang-tidy provides<br>
>>>>>> command line output only)<br>
>>>>>>    Solution: With Codechecker analyzer results from multiple analyzers<br>
>>>>>> can be viewed in a common way for developers or other tools for further<br>
>>>>>> result processing.<br>
>>>>>><br>
>>>>>> - Problem: CC environment variable overwriting by previous scan-build<br>
>>>>>> version (written in perl) is not always a good solution.<br>
>>>>>>    Solution: Compilation database is generated by CodeChecker<br>
>>>>>> (currently using the LD_PRELOAD technique, later with scan-build.py for OSX<br>
>>>>>> support).<br>
>>>>>><br>
>>>>>> - Problem: Analyzer has multiple command line arguments which could be<br>
>>>>>> changed by time, the end users should not be affected.<br>
>>>>>>    Solution: CodeChecker hides the clang analyzer specific options from<br>
>>>>>> the user. Many options are preconfigured. But forwarding options without<br>
>>>>>> modifications to the analyzers is supported.<br>
>>>>>><br>
>>>>>> - Problem: Understanding analyzer results might be harder if only<br>
>>>>>> command line results are available (currently generated static html sites do<br>
>>>>>> not scale and it is hard to manage).<br>
>>>>>>    Solution: Analysis steps can be viewed in command line with<br>
>>>>>> quickcheck or in the web viewer (dynamically generated based on the<br>
>>>>>> database), which can help to understand the analysis results.<br>
>>>>>><br>
>>>>>> (**) 3rd party dependencies for various features:<br>
>>>>>> - Python 2.7.5 (Python Software Foundation) - required to run<br>
>>>>>> CodeChecker<br>
>>>>>> - SQLAlchemy (MIT) - Python SQL toolkit and Object Relational Mapper,<br>
>>>>>> for supporting multiple database backends<br>
>>>>>> - Alembic (MIT) - required for database migration support which is only<br>
>>>>>> available for PostgreSQL database<br>
>>>>>> - pg8000 (BSD) or psycopg2 (LGPL) - at least one database connector is<br>
>>>>>> required for PostgreSQL database support (both are supported)<br>
>>>>><br>
>>>>> We should NOT include dependencies on LGPL!<br>
>>>><br>
>>>> This is an optional runtime dependency (it is not included), we do not<br>
>>>> require it, we just support it at runtime if available at the host machine.<br>
>>>><br>
>>>>>> - Thrift (Apache v2.0) - cross-language service building framework to<br>
>>>>>> handle data transfer for report storage and result viewer clients<br>
>>>>>> - Codemirror (MIT) - view source code in the browser<br>
>>>>>> - Jsplumb (community edition, MIT) - draw bug paths<br>
>>>>>> - Marked (BSD) - view documentation for checkers written in markdown<br>
>>>>>> (generated dynamically)<br>
>>>>>> - Dojotoolkit (BSD) - main framework for the web UI<br>
>>>>>> - Highlightjs (BSD) - required for highlighting the source code<br>
>>>>>><br>
>>>>>> For further information check out our GitHub<br>
>>>>>> (<a href="https://github.com/Ericsson/codechecker" rel="noreferrer" target="_blank">https://github.com/Ericsson/<wbr>codechecker</a>) page.<br>
>>>>>><br>
>>>>>> Best Regards,<br>
>>>>>> Gyorgy Orban<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>
>>>> Best Regards,<br>
>>>> Gyorgy Orban<br>
>>>><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>
>>><br>
>>><br>
>><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>
______________________________<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>
</div></div></blockquote></div><br></div>