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

Consider auto derefs before warning about write only fields #82297

Merged
merged 1 commit into from
Feb 23, 2021

Commits on Feb 19, 2021

  1. Consider auto derefs before warning about write only fields

    Changes from 81473 extended the dead code lint with an ability to detect
    fields that are written to but never read from. The implementation skips
    over fields on the left hand side of an assignment, without marking them
    as live.
    
    A field access might involve an automatic dereference and de-facto read
    the field. Conservatively mark expressions with deref adjustments as
    live to avoid generating false positive warnings.
    tmiasko committed Feb 19, 2021
    Configuration menu
    Copy the full SHA
    343b673 View commit details
    Browse the repository at this point in the history