[clang-tidy] fix false negative in cppcoreguidelines-missing-std-forward (#83987)

Try to fix https://github.com/llvm/llvm-project/issues/83845
When `std::forward` is invoked in a function, make sure it uses correct
parameter by checking if the bounded `var` equals the parameter.

Co-authored-by: huqizhi <836744285@qq.com>
GitOrigin-RevId: 8b326d59467b941831942c651c585055b3d512e4
3 files changed