| Summary: |
qstring-allocations does not detect constructing a QStringList with braced initialization |
| Product: |
[Developer tools] clazy
|
Reporter: |
Christian Schärf <c.schaerf> |
| Component: |
general | Assignee: |
Unassigned bugs <unassigned-bugs-null> |
| Status: |
REPORTED
---
|
|
|
| Severity: |
normal
|
CC: |
smartins
|
| Priority: |
NOR
|
|
|
| Version First Reported In: |
unspecified | |
|
| Target Milestone: |
--- | |
|
| Platform: |
Other | |
|
| OS: |
Linux | |
|
|
Latest Commit:
|
|
Version Fixed/Implemented In:
|
|
|
Sentry Crash Report:
|
|
| |
| Attachments: |
AST excerpt from the example code
|
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.