Detect immutable variables regardless of the const modifier.
If a variable has a compile-time-constant initial-value, and is
never written-to elsewhere, we can treat it as immutable whether
or not the author of the code used the `const` modifier.
Bug: skia:14386
Change-Id: I00f8f32593534b5273de83dde05738fc084a017e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/712767
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
72 files changed