You basically have the static analyzer's CFG and Clang's AST. With the AST you can do limited data flow analysis (as long as you don't need path or control flow sensitivity), with the CFG you can do anything you want (at least in C) given enough computing power :P<div><br></div><div>AST access is well-integrated in libtooling, CFG access less so (I haven't written a tool that uses the CFG, but given that the CFG is used for Clang's diagnostics, I'd imagine it's not too hard to use from a libTooling based tool).</div><div><br></div><div>Looping in Anna & Jordan for more info on what's possible with the CFG / static analyzer.</div><div><br></div><div>Cheers,</div><div>/Manuel<br><br><div class="gmail_quote">On Fri Nov 14 2014 at 6:56:10 AM Vanush Vaswani <<a href="mailto:vanush@gmail.com">vanush@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What API's are available for Dataflow Analysis in Clang? I want to create a<br>
standalone tool (using libTooling) to analyse C source code.<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://clang-developers.42468.n3.nabble.com/Data-flow-analysis-in-Clang-tp4042447.html" target="_blank">http://clang-developers.42468.<u></u>n3.nabble.com/Data-flow-<u></u>analysis-in-Clang-tp4042447.<u></u>html</a><br>
Sent from the Clang Developers mailing list archive at Nabble.com.<br>
______________________________<u></u>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-dev</a><br>
</blockquote></div></div>