| 153 | } |
| 154 | |
| 155 | void TestClangUtils::testTemplateArgumentTypes() |
| 156 | { |
| 157 | QFETCH(QByteArray, code); |
| 158 | QFETCH(int, cursorIndex); |
| 159 | QFETCH(QStringList, expectedTypes); |
| 160 | |
| 161 | CursorCollectorVisitor visitor; |
| 162 | auto unit = runVisitor(code, visitor); |
| 163 | QVERIFY(cursorIndex < visitor.cursors.size()); |
| 164 | const auto cursor = visitor.cursors[cursorIndex]; |
| 165 | const QStringList types = ClangUtils::templateArgumentTypes(cursor); |
| 166 | |
| 167 | QCOMPARE(types, expectedTypes); |
| 168 | } |
| 169 | |
| 170 | void TestClangUtils::testTemplateArgumentTypes_data() |
| 171 | { |
nothing calls this directly
no test coverage detected