[clazy] [Bug 367485] New: Invalid loop detach warning for function local container
Mathias Hasselmann via KDE Bugzilla
bugzilla_noreply at kde.org
Thu Aug 18 10:30:28 BST 2016
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-bugs at kde.org
Reporter: mathias.hasselmann at kdab.com
CC: smartins at 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 the assignee for the bug.
More information about the Unassigned-bugs
mailing list