| 1813 | } |
| 1814 | |
| 1815 | void TestDUChain::testExternC() |
| 1816 | { |
| 1817 | auto code = R"(extern "C" { void foo(); })"; |
| 1818 | TestFile file(code, QStringLiteral("cpp")); |
| 1819 | file.parse(TopDUContext::AllDeclarationsContextsAndUses); |
| 1820 | QVERIFY(file.waitForParsed()); |
| 1821 | |
| 1822 | DUChainReadLocker lock; |
| 1823 | auto top = file.topContext(); |
| 1824 | QVERIFY(top); |
| 1825 | QVERIFY(!top->findDeclarations(QualifiedIdentifier(u"foo")).isEmpty()); |
| 1826 | } |
| 1827 | |
| 1828 | void TestDUChain::testIncludeExternC() |
| 1829 | { |
nothing calls this directly
no test coverage detected