https://bugs.kde.org/show_bug.cgi?id=367485
Bug ID: 367485 Summary: Invalid loop detach warning for function local container 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 Clazy emits wrong detach warnings for known-to-be local containers: Model::reset() { beginResetModel(); constexpr int preallocSize = 160; QVarLengthArray<RawDataEntry, preallocSize> initialEntries = { ... }; m_data.clear(); for (const auto &entry: initialEntries) // -Wclazy-range-loop] m_data.insert(entry.id, entry); endResetModel(); } -- You are receiving this mail because: You are watching all bug changes.