<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="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="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="m_7805426066755889265divtagdefaultwrapper" dir="ltr" style="font-style:normal;font-variant-caps: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="m_7805426066755889265divtagdefaultwrapper" dir="ltr" style="font-style:normal;font-variant-caps: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="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-variant-caps: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-variant-caps: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-variant-caps: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-variant-caps: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" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank" rel="noreferrer">cfe-dev@lists.llvm.org</a><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps: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" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank" rel="noreferrer">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>