[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
Wed Dec 6 07:58:21 PST 2023
================
@@ -261,21 +262,27 @@ void UnnecessaryCopyInitialization::registerMatchers(MatchFinder *Finder) {
this);
}
+UnnecessaryCopyInitialization::CheckContext::CheckContext(
----------------
PiotrZSL wrote:
Problem is that code were moved from check method to CheckContext constructor. And thats not nice. CheckContext (context by name) shouldn't have any logic.
https://github.com/llvm/llvm-project/pull/73921
More information about the cfe-commits
mailing list