[cfe-dev] Question about how to extract information about the calling object

Zack Coker via cfe-dev cfe-dev at lists.llvm.org
Wed Jun 27 18:35:18 PDT 2018


Hello,

Thanks for letting me join this mailing list. 

I’m a PhD student trying to write experimental c++ static analysis checks for ROS. 

I’m having trouble extracting the type of the calling object using a CheckerDocumentation method.  For the line of code a.close(), after identifying that close() is a method of interest, I’d like to be able to identify that a is of type Bar or some subclass of Bar. 

I’ve tried to look through all the documentation resources on the website and have spent a couple of days trying to investigate the problem - reading example checkers that seem like they are trying to do something similar. I may have missed something important, but I have been unable to find out how to extract this information. 

If you could point me in the right direction, I’d appreciate it!

Zack Coker


More information about the cfe-dev mailing list