Skip to content

Rename bit read/write methods. #109

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

Merged
merged 1 commit into from
Jun 6, 2017

Conversation

adamgreig
Copy link
Member

@adamgreig adamgreig commented Jun 6, 2017

set() -> set_bit()
clear() -> clear_bit()
is_set() -> is_bit_set()
is_clear() -> is_bit_clear()

Also adds these names to the list of reserved keywords along with bit and bits
so that they are suffixed with an underscore if used as a variant name.

Also causes the set_bit() and clear_bit() methods to be added even if the field has an enumeratedValues.

#99 #92 @whitequark

set() -> set_bit()
clear() -> clear_bit()
is_set() -> is_bit_set()
is_clear() -> is_bit_clear()

Also adds these names to the list of reserved keywords along with bit and bits
so that they are suffixed with an underscore if used as a variant name.
@japaric
Copy link
Member

japaric commented Jun 6, 2017

Also adds these names to the list of reserved keywords along with bit and bits
so that they are suffixed with an underscore if used as a variant name.

Excellent!

Thank you @adamgreig!

@homunkulus r+

@homunkulus
Copy link
Contributor

📌 Commit cc512a0 has been approved by japaric

@homunkulus
Copy link
Contributor

⌛ Testing commit cc512a0 with merge cc512a0...

@homunkulus
Copy link
Contributor

☀️ Test successful - status-appveyor, status-travis
Approved by: japaric
Pushing cc512a0 to master...

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