-
Notifications
You must be signed in to change notification settings - Fork 274
Move class_typet::baset to struct_typet #3027
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Does it make sense to have a middle layer -- struct_with_base_typet or so? |
Maybe - what is the cost of having this API in there, and thus the added value of |
245c7b5
to
c6a55e7
Compare
On the other hand does C++ really distinguish a class from a struct at all? I appreciate there are two keywords, but isn't a struct just a class with default public visibility, and the real distinction is between plain-old-data (C-ish structs) any anything else? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passed Diffblue compatibility checks (cbmc commit: c6a55e7).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/85748394
if(member_type.get(ID_identifier) | ||
==parent_it->find(ID_type).get(ID_identifier)) | ||
if( | ||
member_type.get(ID_identifier) == |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_identifier()
if possible?
Structs can have base classes/structs. This enables wide use of the bases() API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passed Diffblue compatibility checks (cbmc commit: 1f5e03c).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/85823211
Structs can have base classes/structs. This enables wide use of the bases() API.