<div dir="ltr"><div><div><div><div><div><div><span style="font-family:arial,helvetica,sans-serif"><font>Hello everyone,<br><br></font></span></div><span style="font-family:arial,helvetica,sans-serif"><font>The Clang Static analyzer can output the diagnostics </font></span><span style="font-family:arial,helvetica,sans-serif"><font><font>in plist format. It is a useful feature, because it is easy to parse that format with 3rd party tools, hence integrating clang tools with others.<br><br></font></font></span><span style="font-family:arial,helvetica,sans-serif"></span></div><span style="font-family:arial,helvetica,sans-serif"><font>Unfortunately the plist reporting format is not supported by Clang Tidy. We would like to add plist support to it. This involves a lot of changes both to the format and the public API, so I want your opinion, how to do it.<br><br></font></span></div><span style="font-family:arial,helvetica,sans-serif"><font>In my opinion we need to extend the plist format to:<br></font></span></div><span style="font-family:arial,helvetica,sans-serif"><font>* Support notes that are not events<br></font></span></div><span style="font-family:arial,helvetica,sans-serif"><font>* Support fixits<br><br></font></span></div><div><span style="font-family:arial,helvetica,sans-serif"><font>What do you think, what would be the bast way to extend the format with those informations?<br><br></font></span></div><div><span style="font-family:arial,helvetica,sans-serif"><font>The plist reporting related functionality is not part of the Clang public API at the moment. The best would be, if the Static Analyzer and regular diagnostics could be reported to the same plist output file. To achieve this, the diagnostic consumer that outputs to the plist should support both PathDiagnostics and regular Diagnostics. </font></span><span style="font-family:arial,helvetica,sans-serif"><font>It would be redundant to reimplement the whole functionality in Clang Tidy. To reduce the redundancy, we would like to refactor several plist related helper functions out from PlistDiagnostics and make it available in public headers. We would also like to make </font></span><span style="font-family:arial,helvetica,sans-serif"><font>PlistDiagnostics class available so we can inherit from it. What do you think, what would be the best way to organize these changes? <br></font></span></div><span style="font-family:arial,helvetica,sans-serif"></span><div><div><div><div><div><div><div><span style="font-family:arial,helvetica,sans-serif"><font><br></font></span><p class="MsoNormal"><span style="font-family:arial,helvetica,sans-serif"><font>Thanks,</font></span></p><span style="font-family:arial,helvetica,sans-serif"><font>

</font></span><p class="MsoNormal"><span style="font-family:arial,helvetica,sans-serif"><font>Gábor Horváth</font></span></p><br></div></div></div></div></div></div></div></div>