Warning, /sdk/clazy/tests/qstring-allocations/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 = { "foo" };
0005
0006 void test()
0007 {
0008 QString s = QStringLiteral("foo");
0009 QString s2 = "foo" "bar";
0010 }
0011
0012 void testMultiPartStringLiterals()
0013 {
0014
0015 QString s = "foo""bar";
0016 s += "foo""bár";
0017 s += "foo"
0018 "bar"
0019 "Test";
0020 s = QString::fromLatin1("foo" "bar");
0021 s += QString::fromLatin1("foo" "bar");
0022 }