This fixes false-positives when a function or constructor takes address of the
parameter.
The motivation behind this change is a custom class that works similar to
std::string_view that takes the length by reference from an existing variable.
clang-tidy reported stores to the original length variable as dead although
they were actually observed by the string view.
You don't seem to use the index, only for iterating over the parameters.
I believe, FD->parameters() would simplify this code.