-
Notifications
You must be signed in to change notification settings - Fork 273
Allow accessing pointer type selector via friend function #2301
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
Allow accessing pointer type selector via friend function #2301
Conversation
|
||
// friend function to access pointer type selector in unit tests | ||
friend const select_pointer_typet & | ||
get_pointer_type_selector_unit(const java_bytecode_languaget &); |
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.
Is the function definition part of some other PR?
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.
yes, it had planned to make it live in TG, but I could also add it to jbmc unit java-testing-utils
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.
If it would only be in TG but not in jbmc (which is open source), I'm thinking people might be tempted to delete it maybe because they won't see the reason for it. What do you think?
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.
No far-away friend
declarations, please. Let alone any that aren't even in the same repository. If that to-be friend needs access to members, make all those members public instead.
3f90202
to
3b321b7
Compare
@svorenova @tautschnig I think this is completely resolvable in TG |
Required for unit testing in TG