| 36 | } |
| 37 | |
| 38 | QSharedPointer<CodeCompletionContext> createCompletionContext(const DUContextPointer& context, |
| 39 | const ParseSessionData::Ptr& session, |
| 40 | const QUrl& url, |
| 41 | const KTextEditor::Cursor& position, |
| 42 | const QString& text, |
| 43 | const QString& followingText) |
| 44 | { |
| 45 | if (includePathCompletionRequired(text)) { |
| 46 | return QSharedPointer<IncludePathCompletionContext>::create(context, session, url, position, text); |
| 47 | } else { |
| 48 | return QSharedPointer<ClangCodeCompletionContext>::create(context, session, url, position, text, followingText); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | class ClangCodeCompletionWorker : public CodeCompletionWorker |
| 53 | { |
no test coverage detected