Skip to content
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

Style updates, mostly _ naming #970

Merged
merged 6 commits into from
Dec 7, 2021
Merged

Style updates, mostly _ naming #970

merged 6 commits into from
Dec 7, 2021

Conversation

jonmeow
Copy link
Contributor

@jonmeow jonmeow commented Dec 6, 2021

There are some declaration order changes, and a few test classes switched from struct to class. However, this PR is mostly adopting _ naming of private member variables due to the shift in naming style. None of what's here should have behavior impacts, it should just be style.

Note, there are a lot of things that look like they could be accessor-named, but I'm not doing that in this change. Happy to do it separately if you want me to do another PR focused on it.

@jonmeow jonmeow requested a review from a team as a code owner December 6, 2021 21:36
Copy link
Contributor

@chandlerc chandlerc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whew, lots of changes. Not sure I didn't miss anything, but did my best. One super minor change, but generally LGTM.

Really would like clang-tidy to handle declaration order for me, but 🤷

toolchain/parser/parse_tree.h Outdated Show resolved Hide resolved
@jonmeow jonmeow merged commit 8af2f7c into carbon-language:trunk Dec 7, 2021
@jonmeow jonmeow deleted the toolchain-style branch December 7, 2021 17:46
@jonmeow jonmeow mentioned this pull request Jan 7, 2022
chandlerc added a commit that referenced this pull request Jun 28, 2022
There are some declaration order changes, and a few test classes switched from `struct` to `class`. However, this PR is mostly adopting `_` naming of private member variables due to the shift in naming style. None of what's here should have behavior impacts, it should just be style.

Note, there are a lot of things that *look* like they could be accessor-named, but I'm not doing that in this change. Happy to do it separately if you want me to do another PR focused on it.

Co-authored-by: Chandler Carruth <[email protected]>
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.

2 participants