[Cocci] Control flow query across files
j.lancia at serma.com
Tue Mar 26 15:29:06 CET 2013
I've stumbled accross coccinelle and I'm interested in using it to perform queries on the control flow graph (quite similarly to what have been done in "Finding Error Handling Bugs in OpenSSL using Coccinelle" by Lawall and al.).
However, I wonder if it is possible to perform queries on the control flow graph that span across a single C file.
An example to be clear:
fileA.h : f(), g(), h()
fileA.c : f() calls g() calls h() calls i()
fileA.h : i() j() k()
fileA.c : i() calls j() calls k()
Is it possible with coccinelle to match the query
that spans across fileA.c and fileB.c ?
Thanks in advance for your help,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Cocci