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

feat: Require that for-init-decls have one of 2 formats. #67

Merged
merged 1 commit into from
Dec 15, 2021

Conversation

iphydf
Copy link
Member

@iphydf iphydf commented Dec 15, 2021

The for loop init decl should either be a variable declaration like
int i = 0 or an assignment like i = 0. This disallows for example
int i as an init-decl (it's uninitialised) or some random other
expression that's not an assignment.


This change is Reviewable

@iphydf iphydf added this to the v0.0.6 milestone Dec 15, 2021
@auto-add-label auto-add-label bot added the enhancement New feature for the user, not a new feature for build script label Dec 15, 2021
Copy link
Member

@JFreegman JFreegman left a comment

Choose a reason for hiding this comment

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

Reviewed 6 of 6 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained

The for loop init decl should either be a variable declaration like
`int i = 0` or an assignment like `i = 0`. This disallows for example
`int i` as an init-decl (it's uninitialised) or some random other
expression that's not an assignment.
@iphydf iphydf merged commit c7c1e92 into TokTok:master Dec 15, 2021
@iphydf iphydf deleted the for-loops branch December 15, 2021 21:32
@iphydf iphydf modified the milestones: v0.0.6, v0.0.7 Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature for the user, not a new feature for build script
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants