| Summary: | qt6-qhash-signature rewrites type of parameter instead of return value | ||
|---|---|---|---|
| Product: | [Developer tools] clazy | Reporter: | Richard <richard.oehlinger> |
| Component: | general | Assignee: | 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/Implemented In: | ||
| Sentry Crash Report: | |||
I'm using clazy 1.12 The QT6 porting checks are deprecated with clazy 1.16 |
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())); } ***