https://bugs.kde.org/show_bug.cgi?id=431389
Bug ID: 431389
Summary: qstring-allocations does not detect constructing a
QStringList with braced initialization
Product: clazy
Version: unspecified
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Consider the following code:
#include <QStringList>
void f() {
QStringList list{"test"};
}
Clazy does not emit a warning from the qstring-allocations check, despite a
QString being constructed from a const char*. The the relevant AST is attached.
--
You are receiving this mail because:
You are watching all bug changes.