| 290 | } |
| 291 | |
| 292 | void TestClangUtils::testGetCursorSignature_data() |
| 293 | { |
| 294 | QTest::addColumn<QByteArray>("code"); |
| 295 | QTest::addColumn<QString>("expectedSignature"); |
| 296 | |
| 297 | QTest::newRow("global-less") |
| 298 | << QByteArray("class klass {}; bool operator < (const klass&, const klass&);") |
| 299 | << "bool operator<(const klass&, const klass&)"; |
| 300 | QTest::newRow("member-less") |
| 301 | << QByteArray("class klass { bool operator < (const klass&); };") |
| 302 | << "bool klass::operator<(const klass&)"; |
| 303 | QTest::newRow("template-member-less") |
| 304 | << QByteArray("class klass { template<typename T> bool operator < (const T&); };") |
| 305 | << "bool klass::operator<(const T&)"; |
| 306 | } |
| 307 | |
| 308 | #include "moc_test_clangutils.cpp" |