[cfe-dev] Get number of unique operators and operands for calculation of Halstead metrics

manavender reddy manavender.623 at gmail.com
Sun Aug 15 13:27:27 PDT 2010


Hi all,

Can anyone help me with this. How can i find number of unique operators and
operands in a function. Here's what i am doing.
I first got an CFG of the function and then i am going through each block. I
am stuck after that, i dont know how to parse each Stmt/Expr in a block to
get operators and operands ?


Thanks
Manavender
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100815/9be7d8a7/attachment.html>


More information about the cfe-dev mailing list