<div><br>What is the TranslationUnit required as a parameter for AnalysisContext creation ? </div>
<div> </div>
<div>Thanks and Regards </div>
<div>Parijat <br></div>
<div class="gmail_quote">On Mon, Sep 13, 2010 at 8:24 AM, Ted Kremenek <span dir="ltr"><<a href="mailto:kremenek@apple.com">kremenek@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">On Sep 13, 2010, at 5:25 AM, Parijat Banerjee wrote:<br><br>> Also can someone give a small snippet of code to demonstrate forming a CFG class( branch 2.7 + )  given an already formed ASTContext class and maybe a RecursiveASTVisitor to traverse the AST .<br>
<br></div>Probably the best way to construct a CFG is to have an AnalysisContext object do it for you.  You can construct an AnalysisContext object using a FunctionDecl, and then call the getCFG() method to have it lazily create a CFG.  When the AnalysisContext object is destroyed, the CFG will be destroyed as well.</blockquote>
</div><br>