[clang-tools-extra] [clang-tidy] performance-unnecessary-copy-init: Add a hook... (PR #73921)
Clement Courbet via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 6 04:19:47 PST 2023
================
@@ -261,21 +262,27 @@ void UnnecessaryCopyInitialization::registerMatchers(MatchFinder *Finder) {
this);
}
+UnnecessaryCopyInitialization::CheckContext::CheckContext(
----------------
legrosbuffle wrote:
Given that we are deriving `IssueFix`, `IsVarUnused`, `IsVarOnlyUsedAsConst` from `Var`, `BlockStmt`, ... it sounds natural to have a ctor there. Otherwise we risk creating a `CheckContext` in an invalid state.
https://github.com/llvm/llvm-project/pull/73921
More information about the cfe-commits
mailing list