<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Dear All,<div>I want to add a command option in Clang to analyze  the cfg information.</div><div>I have modified the Driver of Clang. Also, the CompilerInstance has been modified partly. </div><div>In the directory "lib\frontendtool\ExecuteCompilerInvocation.cpp",  I add some codes as follows(with the color red):</div><div>static FrontendAction * CreateFrontendBaseAction(CompilerInstance &CI){</div><div>........</div><div>........</div><div></div><span style="color: rgb(255, 0, 0); "><div style="color: rgb(255, 0, 0); ">case RunANewAnalysis:   ////////this case is added by myself</div><div style="color: rgb(255, 0, 0); ">         return new ento::NewAnalysisAction();</div></span><div></div><div>.......</div><div>.......</div><div>}</div><div>Now my question is that who(which class or object) deals with the <span style="color: rgb(255, 0, 0); ">new acti!
 on</span>.</div><div>Then how should I do to get the cfg information?</div><div>PS:</div><div>I also create the NewAnalysisAction with the return value<span style="color: rgb(255, 0, 0); "> *ASTConsume</span><span style="color: rgb(255, 0, 0); ">r</span>.</div><div>But I have no idea that how to deal with the<span style="color: rgb(255, 0, 0); "> ASTConsumer</span>, and how to translate to cfg then.  </div><div><br></div><div>Thanks.</div><div><br></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>