blob: 71706619fd1a37c77697e9fb216692aae7bb5176 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# auto-unexpected-qstringbuilder
Finds places where auto is deduced to be `QStringBuilder` instead of `QString`, which introduces crashes.
#### Example
#define QT_USE_QSTRINGBUILDER
#include <QtCore/QString>
(...)
const auto path = "hello " + QString::fromLatin1("world");
qDebug() << path; // CRASH
#### Fixits
export CLAZY_FIXIT="fix-auto-unexpected-qstringbuilder"
|