MCPcopy Create free account
hub / github.com/KDE/kdevelop / shouldAbortCompletion

Method shouldAbortCompletion

plugins/clang/codecompletion/model.cpp:205–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205bool ClangCodeCompletionModel::shouldAbortCompletion(KTextEditor::View* view, const KTextEditor::Range& range, const QString& currentCompletion)
206{
207 const auto shouldAbort = KDevelop::CodeCompletionModel::shouldAbortCompletion(view, range, currentCompletion);
208 if (shouldAbort && includePathCompletionRequired(view->document()->line(range.end().line()))) {
209 // don't abort include path completion which can contain dashes
210 return false;
211 }
212 return shouldAbort;
213}
214
215CodeCompletionWorker* ClangCodeCompletionModel::createCompletionWorker()
216{

Callers

nothing calls this directly

Calls 4

lineMethod · 0.45
documentMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected