Data-driven tests with QTest can use either newRow or addRow to add a new testdata row. Each data row has a unique data-tag used in logs, testrunners etc. Sometimes this data-tag is generated procedurally: QTest::newRow(qPrintable(QString("Testing %1").arg(foo))) << foo; However there's a better solution: QTest::addRow, which natively supports printf syntax: QTest::addRow("Testing %d", foo) << foo; The idea is that this check should see if newRow is being used with qPrintable / QString::asprintf / etc. and suggest addRow instead.