[Rose-public] compare class types/definitions

Tim rose.mailinglist at gmail.com
Wed May 7 19:07:33 PDT 2014


I would like to figure out, if two class definitions are the same.
What is the best practice:

Let's assume SgClassDefinition *def1, *def2;

a) def1->get_type() == def2->get_type()
b) def1->get_declaration()->search_for_symbol_from_symbol_table()
    == def1->get_declaration()->search_for_symbol_from_symbol_table()

Or, does these operations are not equivalent to each other?

I am thankful for every help.

Best regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nersc.gov/pipermail/rose-public/attachments/20140507/219e0b40/attachment.html>

More information about the rose-public mailing list