commit | 825e3721e117b88fc5ddd4ab536e69ac672beb1d | [log] [tgz] |
---|---|---|
author | John Stiles <johnstiles@google.com> | Fri Jan 27 09:33:47 2023 -0500 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Mon Jan 30 15:00:54 2023 +0000 |
tree | 6f175d278f959869330c452808fa58255cc8b279 | |
parent | 7d0c572a060dd71bc917a5e26ccb9667fc5e4e31 [diff] |
Track loop returns in addition to continue/break. Besides `continue` and `break`, another way that a for loop can exit early is via a `return` statement. This requires slightly deeper inspection, because a `return` can be nested inside a loop or switch. Change-Id: I0a0e27d7f38dd51ffacb57a7a1f90657008d640b Reviewed-on: https://skia-review.googlesource.com/c/skia/+/634457 Reviewed-by: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com>