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

protoc: validate that reserved range start is before end #13474

Closed

Conversation

jhump
Copy link
Contributor

@jhump jhump commented Aug 8, 2023

This addresses #13442. This also backfills the tests to add tests for the two checks that were already implemented as well as one for the newly added check.

Finally, this fixes the location information so that positions for reserved ranges are correctly reported. (The previous check that already existed, for enums, failed to show line and column info.)

…ation for existing similar check for enum reserved ranges
@jhump jhump requested a review from a team as a code owner August 8, 2023 21:17
@jhump jhump requested review from sbenzaquen and removed request for a team August 8, 2023 21:17
@fowles fowles added protoc 🅰️ safe for tests Mark a commit as safe to run presubmits over labels Aug 8, 2023
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Aug 8, 2023
@fowles
Copy link
Member

fowles commented Aug 9, 2023

this is going to take a few days, I need to cleanup google3.

copybara-service bot pushed a commit that referenced this pull request Aug 12, 2023
This addresses #13442. This also backfills the tests to add tests for the two checks that were already implemented as well as one for the newly added check.

Finally, this fixes the location information so that positions for reserved ranges are correctly reported. (The previous check that already existed, for enums, failed to show line and column info.)

Closes #13474

COPYBARA_INTEGRATE_REVIEW=#13474 from jhump:jh/validate-msg-reserved-range-order 661adc7
FUTURE_COPYBARA_INTEGRATE_REVIEW=#13474 from jhump:jh/validate-msg-reserved-range-order 661adc7
PiperOrigin-RevId: 556348808
copybara-service bot pushed a commit that referenced this pull request Aug 14, 2023
This addresses #13442. This also backfills the tests to add tests for the two checks that were already implemented as well as one for the newly added check.

Finally, this fixes the location information so that positions for reserved ranges are correctly reported. (The previous check that already existed, for enums, failed to show line and column info.)

Closes #13474

COPYBARA_INTEGRATE_REVIEW=#13474 from jhump:jh/validate-msg-reserved-range-order 661adc7
FUTURE_COPYBARA_INTEGRATE_REVIEW=#13474 from jhump:jh/validate-msg-reserved-range-order 661adc7
PiperOrigin-RevId: 556348808
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants