[clang-tools-extra] [clang-tidy] performance-unnecessary-copy-initialization: Enhance the check for the scenario with MemberExpr initialization. (PR #151936)

via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 7 04:22:04 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
----------------
movie-travel-code wrote:

I've fixed the diag messages.

https://github.com/llvm/llvm-project/pull/151936


More information about the cfe-commits mailing list