<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">There was a problem with the missing severity levels. Usually the converter is used through CodeChecker, where they are available.</p>
<p style="margin-top:0;margin-bottom:0">It should be fixed now on the master branch.</p>
<p style="margin-top:0;margin-bottom:0">As Whisperity already mentioned, with make you can build the package and download the javascript dependencies.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">$ cd vendor/plist_to_html</p>
<p style="margin-top:0;margin-bottom:0">$ make clean all</p>
<p style="margin-top:0;margin-bottom:0"><span>$ ./build/bin/plist-to-html --help</span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>Let us know if you still experience some issues.<br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>Br,</span></p>
<p style="margin-top:0;margin-bottom:0"><span>Gyorgy Orban<br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span></span><br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Whisperity <whisperity@gmail.com><br>
<b>Sent:</b> Thursday, September 27, 2018 8:54:49 AM<br>
<b>To:</b> George Karpenkov<br>
<b>Cc:</b> György Orbán; via cfe-dev<br>
<b>Subject:</b> Re: [cfe-dev] [Proposal] New tool contributions to clang repository (gcc/g++ compilation database converter, plist to HTML converter)</font>
<div> </div>
</div>
<meta content="text/html; charset=utf-8">
<div>
<div dir="auto">I think you'll have to first run a "make" on the package (vendor/plist-to-html in the CodeChecker repository) so third-party dependencies such as CodeMirror are downloaded and put to the appropriate place.</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr">On Wed, 26 Sep 2018, 19:59 George Karpenkov via cfe-dev, <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div style="word-wrap:break-word; line-break:after-white-space">Hi Gyorgy,
<div><br>
</div>
<div>
<div>
<blockquote type="cite">
<div>On Sep 25, 2018, at 11:41 AM, György Orbán via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank" rel="noreferrer">cfe-dev@lists.llvm.org</a>> wrote:</div>
</blockquote>
<blockquote type="cite">
<div>
<div id="x_m_7805426066755889265divtagdefaultwrapper" dir="ltr" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-size:12pt; font-family:Calibri,Helvetica,sans-serif">
<div>2. Plist to HTML report conversion tool<br>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>I’d really love to have that in Clang, and I think that is an amazing tool!</div>
<div>However, I’ve tried to launch it and failed — it seemed to look for files which are not there.</div>
<div>I would be happy to review patches for that — but I think the tool would require quite a lot of work.</div>
<br>
<blockquote type="cite">
<div>
<div id="x_m_7805426066755889265divtagdefaultwrapper" dir="ltr" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-size:12pt; font-family:Calibri,Helvetica,sans-serif">
<div><br>
1. gcc/g++ compilation database to Clang compilation database conversion tool<br>
<br>
One problem is what we want to address is that gcc/g++ compilation commands cannot be forwarded without modification<br>
to the Clang based tools as they were logged or exported by the build system.<br>
 <br>
Post-processing of the compilation command is required:<br>
- might contain compilation flags and build targets which are not compatible with Clang (needs to be filtered out)<br>
- the compilation argument filtering needs to be done in every tool which uses the compilation database json (scan-build, scan-build-py, CodeChecker)<br>
- when gcc is used as a cross compiler, hard-coded include paths, flags and compilation target of gcc/g++ are missing from the command line argument list. These needs to be auto-detected and passed to Clang before analysis.<br>
- C/C++ standard versions might be missing from the compilation commands which could change the analysis results (c++11 checker triggers for c++98 code)<br>
 <br>
Our idea is to create a separate tool which could transform a gcc/g++ compilation database file into a compile command json file which can be used by Clang based tools without further modification.<br>
The non-compatible flags are filtered out and the necessary cross compilation include paths and compilation flags are added.<br>
Other Clang based tools could also benefit from the converted compilation database json, like clangd.<br>
 <br>
2. Plist to HTML report conversion tool (see the source code at<span class="x_m_7805426066755889265Apple-converted-space"> </span><a href="https://github.com/Ericsson/codechecker/tree/master/vendor/plist_to_html" target="_blank" rel="noreferrer">https://github.com/Ericsson/codechecker/tree/master/vendor/plist_to_html</a>)<br>
<br>
Currently Clang Static Analyzer can produce HTML output but this should not be done necessarily by the analyzer.<br>
Plist reports can contain much more information and are easier to manage and parse by other tools compared to the html reports.<br>
With our HTML generator tool we can generate static HTML reports which look similar to the report visualization in Xcode or<br>
to the report viewer web UI of CodeChecker. You can move on each event through a bug path and arrows are shown for easier understanding.<br>
 <br>
Let us know what do you think about these tools, how well would they fit near the available tools.<br>
Your feedback is appreciated.<br>
 <br>
Thanks,<br>
Gyorgy Orban<br>
CodeChecker Team</div>
<p style="margin-top:0px; margin-bottom:0px"></p>
</div>
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">_______________________________________________</span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">cfe-dev
 mailing list</span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank" rel="noreferrer" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">cfe-dev@lists.llvm.org</a><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" target="_blank" rel="noreferrer" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a></div>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank" rel="noreferrer">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote>
</div>
</div>
</body>
</html>