Pass FormatContext to NeedsParentheses#5643
Merged
MichaReiser merged 1 commit intomainfrom Jul 11, 2023
Merged
Conversation
This was referenced Jul 10, 2023
Member
Author
|
Current dependencies on/for this PR: This comment was auto-generated by Graphite. |
738e9a9 to
2c04bdc
Compare
Contributor
PR Check ResultsBenchmarkLinuxWindows |
f06aa8e to
0c7c03d
Compare
2c04bdc to
0681c5e
Compare
konstin
approved these changes
Jul 11, 2023
Member
konstin
left a comment
There was a problem hiding this comment.
Oh, I sneeked in another change. I renamed context.contents to source. contents is too generic and doesn't tell you anything.
that's a good change
0c7c03d to
b754a0d
Compare
0681c5e to
c895628
Compare
b754a0d to
51c4306
Compare
Member
Author
|
Graphite rebased this pull request after merging its parent, because this pull request is set to merge when ready. |
c895628 to
553008e
Compare
Member
Author
|
@MichaReiser merged this pull request with Graphite. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
I started working on this because I assumed that I would need access to options inside of
NeedsParanthesesbut it then turned out that I won't.Anyway, it kind of felt nice to pass fewer arguments. So I'm gonna put this out here to get your feedback if you prefer this over passing individual fiels.
Oh, I sneeked in another change. I renamed
context.contentstosource.contentsis too generic and doesn't tell you anything.Test Plan
It compiles