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-b...@kde.org Reporter: mathias.hasselm...@kdab.com CC: smart...@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 watching all bug changes.