[clang-tools-extra] [clang-tidy][NFC] Enable `performance-unnecessary-value-param` in the codebase (PR #163686)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 22 03:10:08 PDT 2025
================
@@ -76,7 +77,7 @@ void NonTrivialTypesLibcMemoryCallsCheck::registerMatchers(
auto IsRecordSizeOf =
expr(sizeOfExpr(hasArgumentOfType(equalsBoundNode("Record"))));
auto ArgChecker = [&](Matcher<CXXRecordDecl> RecordConstraint,
----------------
vbvictor wrote:
This is strange: why `Matcher<CXXRecordDecl>` isn't converted to reference but `BindableMatcher<Stmt>` is converted. Above, we converted `Matcher<CXXRecordDecl>` to reference already.
https://github.com/llvm/llvm-project/pull/163686
More information about the cfe-commits
mailing list