Finds places where auto is deduced to be QStringBuilder
instead of QString
, which introduces crashes.
Also warns for lambdas returning QStringBuilder
.
#define QT_USE_QSTRINGBUILDER
#include <QtCore/QString>
(...)
const auto path = "hello " + QString::fromLatin1("world");
qDebug() << path; // CRASH
export CLAZY_FIXIT="fix-auto-unexpected-qstringbuilder"