[clazy] [Bug 367484] New: reserve-candidate warnings for QVarLengthArray
Mathias Hasselmann via KDE Bugzilla
bugzilla_noreply at kde.org
Thu Aug 18 10:27:06 BST 2016
https://bugs.kde.org/show_bug.cgi?id=367484
Bug ID: 367484
Summary: reserve-candidate warnings for QVarLengthArray
Product: clazy
Version: unspecified
Platform: Other
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: mathias.hasselmann at kdab.com
CC: smartins at kde.org
When filling a QVarLengthArray clazy wrongly emits reserve-candidate warnings:
constexpr int preallocSize = 160;
QVarLengthArray<RawDataEntry, preallocSize> initialEntries;
for (int i = EntryId::FooFirst; i <= EntryId::FooLast; ++i)
initialEntries.append(RawDataEntry{i, false}); // <- reserve-candidates
warning
for (int i = EntryId::BarFirst; i <= EntryId::BarLast; ++i)
initialEntries.append(RawDataEntry{i, false}); // <- reserve-candidates
warning
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list