-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
types: more strict for types.StrictFlags
#47842
types: more strict for types.StrictFlags
#47842
Conversation
c28e150
to
ca5614f
Compare
0d4acf2
to
6f53dda
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #47842 +/- ##
================================================
+ Coverage 71.8756% 72.8088% +0.9331%
================================================
Files 1399 1422 +23
Lines 405325 411696 +6371
================================================
+ Hits 291330 299751 +8421
+ Misses 94353 93101 -1252
+ Partials 19642 18844 -798
Flags with carried forward coverage won't be shown. Click here to find out more.
|
6f53dda
to
aee6392
Compare
a2a912d
to
67cd6f0
Compare
67cd6f0
to
ae0c3af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
// DefaultStmtFlags is the default flags for statement context with the flag `FlagAllowNegativeToUnsigned` set. | ||
// TODO: make DefaultStmtFlags to be equal with StrictFlags, and setting flag `FlagAllowNegativeToUnsigned` | ||
// is only for make the code to be equivalent with the old implement during refactoring. | ||
const DefaultStmtFlags = context.DefaultStmtFlags |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good! I'll also need to introduce the Default
flags in #47029 🤣
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lance6716, windtalker, YangKeao The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What problem does this PR solve?
Issue Number: close #47829
What is changed and how it works?
FlagClipNegativeToZero
withFlagAllowNegativeToUnsigned
which has a opposite semantics to make theStrictFlags
(all-zero value) more strict.DefaultStmtFlags
withFlagAllowNegativeToUnsigned
set to 1 to keep it same behavior with old implement.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.