[clang-tools-extra] [clang-tidy] performance-unnecessary-copy-initialization: Enhance the check for the scenario with MemberExpr initialization. (PR #151936)
Victor Chernyakin via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 5 21:00:51 PDT 2025
================
@@ -170,6 +170,11 @@ Changes in existing checks
when the format string is converted to a different type by an implicit
constructor call.
+- Improved :doc:`performance-unnecessary-copy-initialization
+ <clang-tidy/checks/performance/unnecessary-copy-initialization>` check by
+ adding detection for the local variables initialized with the member variable
----------------
localspook wrote:
```suggestion
adding detection for local variables initialized with a member variable
```
https://github.com/llvm/llvm-project/pull/151936
More information about the cfe-commits
mailing list