| 1761 | } |
| 1762 | |
| 1763 | void TestDUChain::testIncludeGuardHeaderHeaderOnly() |
| 1764 | { |
| 1765 | QFETCH(QString, code); |
| 1766 | |
| 1767 | // test that we do NOT get a warning for single standalone header file with include guards |
| 1768 | TestFile header(code, QStringLiteral("h")); |
| 1769 | |
| 1770 | QVERIFY(header.parseAndWait(TopDUContext::AllDeclarationsContextsAndUses | TopDUContext::AST)); |
| 1771 | { |
| 1772 | DUChainReadLocker lock; |
| 1773 | QCOMPARE(header.topContext()->problems().size(), 0); |
| 1774 | } |
| 1775 | } |
| 1776 | |
| 1777 | void TestDUChain::testIncludeGuardHeaderHeaderOnly_data() |
| 1778 | { |
nothing calls this directly
no test coverage detected