[clang-tidy] performance-unnecessary-copy-initialization: Correctly match the type name of the thisPointertype.

The matching did not work correctly for pointer and reference types.

Differential Revision: https://reviews.llvm.org/D114212

Reviewed-by: courbet
GitOrigin-RevId: fefe20b99313d6b0738806d1504652c3b7edb9e0
2 files changed