Bug 499309 - qt6-qhash-signature rewrites type of parameter instead of return value
Summary: qt6-qhash-signature rewrites type of parameter instead of return value
Status: REPORTED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-30 08:29 UTC by Richard
Modified: 2025-01-30 08:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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