Warning, /sdk/clazy/docs/checks/README-auto-unexpected-qstringbuilder.md is written in an unsupported language. File is not indexed.
0001 # auto-unexpected-qstringbuilder 0002 0003 Finds places where auto is deduced to be `QStringBuilder` instead of `QString`, which introduces crashes. 0004 Also warns for lambdas returning `QStringBuilder`. 0005 0006 #### Example 0007 0008 #define QT_USE_QSTRINGBUILDER 0009 #include <QtCore/QString> 0010 (...) 0011 const auto path = "hello " + QString::fromLatin1("world"); 0012 qDebug() << path; // CRASH 0013 0014 #### Fixits 0015 0016 This check supports a fixit to rewrite your code. See the README.md on how to enable it.