Bug 499309

Summary: qt6-qhash-signature rewrites type of parameter instead of return value
Product: [Developer tools] clazy Reporter: Richard <richard.oehlinger>
Component: generalAssignee: Alexander Lohnau <alexander.lohnau>
Status: RESOLVED UNMAINTAINED    
Severity: major CC: alexander.lohnau, smartins
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Richard 2025-01-30 08:29:08 UTC
We have the following code in on of our tests
***        
        class payload
        {
        };

        {
            std::shared_ptr<payload> ptr;
            QCOMPARE(qHash(ptr), qHash(ptr.get()));
        }
***
The fixit rewrites it to something incorrect:
***
        class payload
        {
        };

        {
            size_t ptr;
            QCOMPARE(qHash(ptr), qHash(ptr.get()));
        }
***
Comment 1 Richard 2025-01-30 08:32:11 UTC
I'm using clazy 1.12
Comment 2 Alexander Lohnau 2025-09-04 17:10:32 UTC
The QT6 porting checks are deprecated with clazy 1.16