-
Notifications
You must be signed in to change notification settings - Fork 15.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
protoc: validate that reserved range start is before end (#13474)
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 PiperOrigin-RevId: 556979032
- Loading branch information
1 parent
e8a2d45
commit 3be00f7
Showing
3 changed files
with
53 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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