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

Modernize validate.cpp: Use <print> instead of <cstdio> #3919

Merged
merged 2 commits into from
Aug 3, 2023

Conversation

JMazurkiewicz
Copy link
Contributor

This PR replaces uses of fwprintf with calls to print(ln).

This PR replaces uses of `fwprintf` with calls to `print(ln)`.
@JMazurkiewicz JMazurkiewicz requested a review from a team as a code owner August 1, 2023 21:30
@StephanTLavavej StephanTLavavej added the infrastructure Related to repository automation label Aug 1, 2023
@StephanTLavavej StephanTLavavej self-assigned this Aug 1, 2023
Comment on lines -195 to +190
validation_failure(any_errors, filepath, L"file contains %zu lines with more than %zu columns.\n",
validation_failure(any_errors, filepath, "file contains {} lines with more than {} columns.",
Copy link
Member

Choose a reason for hiding this comment

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

No change requested: This fixes a mistake that was introduced by #2671. validation_failure() prints a newline, so we don't want a second one here.

@StephanTLavavej StephanTLavavej removed their assignment Aug 1, 2023
@StephanTLavavej StephanTLavavej self-assigned this Aug 3, 2023
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit c879b26 into microsoft:main Aug 3, 2023
35 checks passed
@StephanTLavavej
Copy link
Member

Thanks for simplifying our beloved validator! ✅ 🎉 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Related to repository automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants