Warning, /sdk/clazy/tests/qstring-allocations/364092.cpp.fixed.expected is written in an unsupported language. File is not indexed.

0001 #include <QtCore/QString>
0002 
0003 inline constexpr QLatin1String operator"" _L1 (const char *str, std::size_t len)
0004 {
0005      return QLatin1String(str, len);
0006 }
0007 
0008 void test364092()
0009 {
0010     QString s = "F"_L1; // Warning
0011 }
0012 
0013 void dummy()
0014 {
0015     // Add at least one thing that will trigger a fixit it, otherwise, without
0016     // any fixit the file won't be generated and that breaks the test
0017     QString s = QStringLiteral("test");
0018 }