Fix issues discovered by ClangTidy 17.

Several of these issues were found because I was running ClangTidy
over code which does not normally get tidied, such as Graphite and
Metal.

Change-Id: I1eb45891e52c59632cffd2e4ff4a44584ceea0d3
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/766637
Reviewed-by: Ben Wagner <bungeman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
32 files changed