<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi!<br><br>I have two questions about this topic.</div><div dir="ltr"><br></div><div dir="ltr">1. Checker registration:<br><br>I am in the process of updating <a href="http://clang-analyzer.llvm.org" target="_blank">clang-analyzer.llvm.org</a>, and as I went through the checkers that were missing, I encountered this:</div><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr"><font face="monospace, monospace">def NonnullGlobalConstantsChecker: Checker<"NonnilStringConstants">,</font></div><div dir="ltr"><font face="monospace, monospace">  HelpText<"Assume that const string-like globals are non-null">,</font></div><div dir="ltr"><font face="monospace, monospace">  DescFile<"NonilStringConstantsChecker.cpp">;</font></div></div><div dir="ltr"><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap"><br></span></div><div><font color="#24292e" face="arial, helvetica, sans-serif"><span style="font-size:12px;white-space:pre-wrap">What is particularly interesting here (other than the mismatched names), is that </span></font><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap">NonilStringConstantsChecker.cpp </span><span style="color:rgb(36,41,46);font-size:12px;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">doesn't exist, in fact it never did. To my greatest surprise, DescFile isn't used anywhere!</font></span></div><div><font color="#24292e" face="monospace, monospace"><span style="font-size:12px;white-space:pre-wrap"><br></span></font></div><div><font color="#24292e" face="monospace, monospace"><span style="font-size:12px;white-space:pre-wrap">#define CHECKER(FULLNAME,CLASS,DESCFILE,HELPTEXT,GROUPINDEX,HIDDEN)    \
  registry.addChecker(register##CLASS, FULLNAME, HELPTEXT);</span></font>
</div><div><span style="color:rgb(36,41,46);font-size:12px;white-space:pre-wrap"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><font color="#24292e" face="arial, helvetica, sans-serif"><span style="font-size:12px;white-space:pre-wrap">So, is there a point in keeping DescFile entries?</span></font></div><div><font color="#24292e" face="arial, helvetica, sans-serif"><span style="font-size:12px;white-space:pre-wrap"><br></span></font></div><div><font color="#24292e" face="arial, helvetica, sans-serif"><span style="font-size:12px;white-space:pre-wrap">2. Use tblgen for AnalyzerOptions:</span></font></div><div><font color="#24292e" face="arial, helvetica, sans-serif"><span style="font-size:12px;white-space:pre-wrap"><br></span></font></div><div><font color="#24292e"><span style="font-size:12px;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">I dislike that I need to look at source code, or doxygen at best to know what kind </font><font face="monospace, monospace">-analyzer-config </font><font face="arial, helvetica, sans-serif">options are </font></span></font><font color="#24292e" face="arial, helvetica, sans-serif"><span style="font-size:12px;white-space:pre-wrap">available. Would it be a good idea for me to refactor it with tblgen?</span></font></div><div><font color="#24292e" face="arial, helvetica, sans-serif"><span style="font-size:12px;white-space:pre-wrap"><br></span></font></div><div><font color="#24292e" face="arial, helvetica, sans-serif"><span style="font-size:12px;white-space:pre-wrap">Cheers,</span></font></div><div>Kristóf</div></div></div></div>