Change `*const` to `&` if no array-like access is detected
In C it's ambiguous whether an argument is a single item or an array. If it can be proven from function body that it's not an array (i.e. not used with []
or +
) and perhaps non-null (unguarded *
or ->
, nonnull
attribute), then it could be changed to a reference.