Skip to content

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

Conversation

mgudemann
Copy link
Contributor

Required for unit testing in TG

@mgudemann mgudemann self-assigned this Jun 7, 2018
@mgudemann mgudemann requested a review from majakusber June 7, 2018 07:47

// friend function to access pointer type selector in unit tests
friend const select_pointer_typet &
get_pointer_type_selector_unit(const java_bytecode_languaget &);

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?

Copy link
Contributor Author

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

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?

Copy link
Collaborator

@tautschnig tautschnig left a 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.

@mgudemann mgudemann force-pushed the enhancement/friend_select_pointer_type branch from 3f90202 to 3b321b7 Compare June 7, 2018 12:25
@tautschnig tautschnig dismissed their stale review June 7, 2018 12:53

It's not a friend anymore.

@mgudemann
Copy link
Contributor Author

@svorenova @tautschnig I think this is completely resolvable in TG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants