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

refactor: Remove redundant this when referring to member variables. #60

Merged
merged 435 commits into from
Jan 8, 2025

Conversation

SharafMohamed
Copy link
Contributor

@SharafMohamed SharafMohamed commented Dec 5, 2024

Description

  • Old standard in this repository was using this->var to refer to member variables in classes. We switched the standard to use m_var. This PR updates previous code to meet this standard.
  • using Parser<TypedNfaState, TypedDfaState>::m_lexer; added to the top of Lalr1Parser variables in the Private section. This allows this->m_lexer of the Parser parent class to be used as m_lexer in Lalr1Parser.

Validation performed

Previously existing tests still succeed.

SharafMohamed and others added 30 commits November 6, 2024 10:14
…ypedefs to the top of the file to fix compilation error.
Copy link
Member

@LinZhihao-723 LinZhihao-723 left a comment

Choose a reason for hiding this comment

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

lgtm. For PR title, how about:

refactor: Remove redundant `this` when referring to member variables.

We should add ` to surround "this" keyword

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