Bug 478293

Summary: clazy-connect-non-signal check fails in case signal is extracted to variable
Product: [Developer tools] clazy Reporter: Alexander Lohnau <alexander.lohnau>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: ASSIGNED ---    
Severity: normal CC: smartins
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Alexander Lohnau 2023-12-09 08:47:41 UTC
auto skipSignal = &AskUserActionInterface::askUserSkipResult;
q->connect(askUserActionInterface, skipSignal, q, [=](KIO::SkipDialog_Result result, KJob *parentJob) {

/home/user/kde/src/kio/src/core/chmodjob.cpp:209:21: warning: couldn't find method from pmf connect, please report a bug [-Wclazy-connect-non-signal]
                    q->connect(askUserActionInterface, skipSignal, q, [=](KIO::SkipDialog_Result result, KJob *parentJob) {
                    ^
Comment 1 Alexander Lohnau 2023-12-09 08:50:19 UTC
The snippet is from KIO on master with qt6
Comment 2 Bug Janitor Service 2024-02-14 07:02:51 UTC
A possibly relevant merge request was started @ https://invent.kde.org/sdk/clazy/-/merge_requests/130