-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Detect unused json members #34735
Merged
kevingranade
merged 8 commits into
CleverRaven:master
from
jbytheway:detect_unsed_json_members
Oct 25, 2019
Merged
Detect unused json members #34735
kevingranade
merged 8 commits into
CleverRaven:master
from
jbytheway:detect_unsed_json_members
Oct 25, 2019
Commits on Oct 24, 2019
-
Configuration menu - View commit details
-
Copy full SHA for d67e791 - Browse repository at this point
Copy the full SHA d67e791View commit details -
Configuration menu - View commit details
-
Copy full SHA for 267c803 - Browse repository at this point
Copy the full SHA 267c803View commit details -
Configuration menu - View commit details
-
Copy full SHA for 566033f - Browse repository at this point
Copy the full SHA 566033fView commit details -
Add JsonObject member sanity checking
Verify when we destroy a JsonObject that we actually visited all the fields of that object. If we didn't, this suggests an error of some kind in the input data. Default is to report an error to the debug log, which users won't notice, but will cause a test failure in CI. This means we need to nearly always pass JsonObjects by non-const reference, so that all the member visitations get registered in a single place. One can opt out of this check by calling allow_omitted_members on the JsonObject. We need to add such calls in a bunch of places that don't visit all the members for one reason or another. Also added various other tweaks and workarounds to prevent false error report. The checking has to not be turned on when building the json tooling executables, because it leads to linking errors (the debug log doesn't exist for them).
Configuration menu - View commit details
-
Copy full SHA for 95bf9c0 - Browse repository at this point
Copy the full SHA 95bf9c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for ee30fe0 - Browse repository at this point
Copy the full SHA ee30fe0View commit details -
These are a collection of new json fixes newly required since I first made this PR.
Configuration menu - View commit details
-
Copy full SHA for fda4ef1 - Browse repository at this point
Copy the full SHA fda4ef1View commit details -
Reinstate blueprint_requires members (commented)
In response to discussion on CleverRaven#34735
Configuration menu - View commit details
-
Copy full SHA for efa5270 - Browse repository at this point
Copy the full SHA efa5270View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ec0c52 - Browse repository at this point
Copy the full SHA 0ec0c52View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.