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

0001 #include <QtCore/QString>
0002 #include <QtCore/QStringList>
0003 
0004 static QStringList list = { QStringLiteral("foo") };
0005 
0006 void test()
0007 {
0008     QString s = QStringLiteral("foo");
0009 }
0010 
0011 void testMultiPartStringLiterals()
0012 {
0013 
0014     QString s = QStringLiteral("foo""bar");
0015     s += QStringLiteral("foo""bár");
0016     s += QLatin1String("foo"
0017          "bar"
0018          "Test");
0019     s = QStringLiteral("foo" "bar");
0020     s += QLatin1String("foo" "bar");
0021 }