Changeset View
Changeset View
Standalone View
Standalone View
duchain/tests/duchaintestbase.h
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Line(s) | |||||
66 | 66 | | |||
67 | public slots: | 67 | public slots: | ||
68 | void initTestCase(); | 68 | void initTestCase(); | ||
69 | void cleanupTestCase(); | 69 | void cleanupTestCase(); | ||
70 | 70 | | |||
71 | protected: | 71 | protected: | ||
72 | KDevelop::TopDUContext* parse(const QByteArray& unit, | 72 | KDevelop::TopDUContext* parse(const QByteArray& unit, | ||
73 | DUChainTestBase::DumpAreas dump = DumpAreas(DumpAll), | 73 | DUChainTestBase::DumpAreas dump = DumpAreas(DumpAll), | ||
74 | QUrl url = {}, KDevelop::TopDUContext* update = 0); | 74 | QUrl url = {}, KDevelop::TopDUContext* update = nullptr); | ||
75 | 75 | | |||
76 | KDevelop::TopDUContext* parseAdditionalFile(const KDevelop::IndexedString& fileName, const QByteArray& contents); | 76 | KDevelop::TopDUContext* parseAdditionalFile(const KDevelop::IndexedString& fileName, const QByteArray& contents); | ||
77 | 77 | | |||
78 | KDevelop::CompletionTreeItemPointer searchDeclaration(QList<KDevelop::CompletionTreeItemPointer> items, KDevelop::Declaration* declaration); | 78 | KDevelop::CompletionTreeItemPointer searchDeclaration(QList<KDevelop::CompletionTreeItemPointer> items, KDevelop::Declaration* declaration); | ||
79 | bool hasImportedParentContext(KDevelop::TopDUContext* top, KDevelop::DUContext* lookingFor); | 79 | bool hasImportedParentContext(KDevelop::TopDUContext* top, KDevelop::DUContext* lookingFor); | ||
80 | }; | 80 | }; | ||
81 | 81 | | |||
82 | Q_DECLARE_OPERATORS_FOR_FLAGS(DUChainTestBase::DumpAreas) | 82 | Q_DECLARE_OPERATORS_FOR_FLAGS(DUChainTestBase::DumpAreas) | ||
83 | } | 83 | } | ||
84 | 84 | | |||
85 | #endif | 85 | #endif |