Skip to content

Commit

Permalink
Make UnusedVariable catch (some) unused assignments, e.g.:
Browse files Browse the repository at this point in the history
  int a = 1;
  ...
  a = 2;
  return a;

This doesn't do anything really fancy like detect:
  int a = 1;
  if (hashCode() > 0) {
    a = 2;
  } else {
    a = 3;
  }
  return a;

RELNOTES: Make UnusedVariable match unused assignments too.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=234960717
  • Loading branch information
graememorgan authored and cushon committed Feb 22, 2019
1 parent 01d4242 commit a115dc3
Show file tree
Hide file tree
Showing 3 changed files with 747 additions and 336 deletions.
Loading

0 comments on commit a115dc3

Please sign in to comment.