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

core: remove unnecessary whitespace printing in assembly format #3530

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

alexarice
Copy link
Collaborator

Variadic arguments were printing whitespace even if they had nothing to print after the whitespace, resulting in extra unnecessary whitespace appearing. This change moves the whitespace printing after the check to see if there's anything to print.

@alexarice alexarice added minor For minor PRs, easy and quick to review, quickly mergeable core xDSL core (ir, textual format, ...) labels Nov 27, 2024
@alexarice alexarice self-assigned this Nov 27, 2024
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.35%. Comparing base (c624080) to head (d437b84).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3530      +/-   ##
==========================================
- Coverage   90.35%   90.35%   -0.01%     
==========================================
  Files         466      466              
  Lines       58476    58485       +9     
  Branches     5580     5581       +1     
==========================================
+ Hits        52838    52845       +7     
- Misses       4209     4210       +1     
- Partials     1429     1430       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@math-fehr math-fehr left a comment

Choose a reason for hiding this comment

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

very nice!

@superlopuh superlopuh merged commit 190c4f8 into main Nov 28, 2024
15 checks passed
@superlopuh superlopuh deleted the alexarice/assembly-format-no-space branch November 28, 2024 22:52
EdmundGoodman pushed a commit to EdmundGoodman/xdsl that referenced this pull request Dec 6, 2024
…project#3530)

Variadic arguments were printing whitespace even if they had nothing to
print after the whitespace, resulting in extra unnecessary whitespace
appearing. This change moves the whitespace printing after the check to
see if there's anything to print.

Co-authored-by: Sasha Lopoukhine <superlopuh@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core xDSL core (ir, textual format, ...) minor For minor PRs, easy and quick to review, quickly mergeable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants