[clang-tools-extra] [clang-tidy] performance-unnecessary-copy-init: Add a hook... (PR #73921)

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 1 00:31:21 PST 2023


================
@@ -302,6 +303,20 @@ void UnnecessaryCopyInitialization::check(
   }
 }
 
+void UnnecessaryCopyInitialization::makeDiagnostic(
+    DiagnosticBuilder Diagnostic, const VarDecl &Var, const Stmt &BlockStmt,
----------------
PiotrZSL wrote:

Then create 2 "makeDiagnostic", one for one and one for other.

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


More information about the cfe-commits mailing list