[cfe-dev] How to get member functions from a cpp file using HandleTopLevelDecl
Jan Bierbaum
s3306700 at inf.tu-dresden.de
Fri Aug 20 06:32:17 PDT 2010
Hi!
manavender reddy meinte am 20.08.2010 03:47:
> The code is working fine and outputs function names with C files, but
> when i give a cpp file containing class as input, its not printing
> any function names
Are you sure you use functions in this cpp file? If you mean the
classes' methods instead ... those are not at the top level but *inside*
the classes.
In this case you will have to look inside the classes (CXXRecordDecl)
and get their respective methods
CXXRecordDecl::method_iterator
CXXRecordDecl::method_begin()
CXXRecordDecl::method_end()
Regards, Jan.
More information about the cfe-dev
mailing list