Bug 408021 - Warn if code contains the constant 0x9e3779b9 (hand-rolled boost::hash_combine)
Summary: Warn if code contains the constant 0x9e3779b9 (hand-rolled boost::hash_combine)
Status: REPORTED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-28 10:54 UTC by Giuseppe D'Angelo
Modified: 2019-09-01 13:33 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 Giuseppe D'Angelo 2019-05-28 10:54:40 UTC
Check if the code contains the constant "0x9e3779b9".

It's VERY likely someone is hand-rolling QtPrivate::QHashCombine / boost::hash_combine. Suggest to use those instead.

E.g. https://codereview.qt-project.org/c/qt/qtbase/+/263115/4/src/network/ssl/qsslerror.cpp#b367