[clazy] [Bug 408021] New: Warn if code contains the constant 0x9e3779b9 (hand-rolled boost::hash_combine)
Giuseppe D'Angelo
bugzilla_noreply at kde.org
Tue May 28 11:54:40 BST 2019
https://bugs.kde.org/show_bug.cgi?id=408021
Bug ID: 408021
Summary: Warn if code contains the constant 0x9e3779b9
(hand-rolled boost::hash_combine)
Product: clazy
Version: unspecified
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: dangelog at gmail.com
CC: smartins at kde.org
Target Milestone: ---
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
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list