================
@@ -162,10 +162,10 @@ NumericLiteralCaseFixer::process(const Environment &Env,
       continue;
     }
 
-    const auto Formatted = format(Text, Style);
+    auto Formatted = format(Text, Style);
     if (Formatted != Text) {
-      cantFail(Result.add(
-          tooling::Replacement(SourceMgr, Location, Length, Formatted)));
+      cantFail(Result.add(tooling::Replacement(SourceMgr, Location, Length,
+                                               std::move(Formatted))));
----------------
owenca wrote:

I would revert this change and rely on copy elision. See 
https://github.com/llvm/llvm-project/pull/151590#discussion_r2312272807.

https://github.com/llvm/llvm-project/pull/151590
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to