Changeset View
Changeset View
Standalone View
Standalone View
plugins/clang/codecompletion/completionhelper.cpp
Show First 20 Lines • Show All 387 Lines • ▼ Show 20 Line(s) | 386 | while (!clang_equalCursors(search, topCursor)) { | |||
---|---|---|---|---|---|
388 | search = clang_getCursorSemanticParent(search); | 388 | search = clang_getCursorSemanticParent(search); | ||
389 | } | 389 | } | ||
390 | std::reverse(scopes.begin(), scopes.end()); | 390 | std::reverse(scopes.begin(), scopes.end()); | ||
391 | } | 391 | } | ||
392 | 392 | | |||
393 | QVector<CXFile> fileFilter; | 393 | QVector<CXFile> fileFilter; | ||
394 | fileFilter << file; | 394 | fileFilter << file; | ||
395 | const auto url = QUrl::fromLocalFile(ClangString(clang_getFileName(file)).toString()).adjusted(QUrl::NormalizePathSegments); | 395 | const auto url = QUrl::fromLocalFile(ClangString(clang_getFileName(file)).toString()).adjusted(QUrl::NormalizePathSegments); | ||
396 | const auto& buddies = DocumentFinderHelpers::getPotentialBuddies(url); | 396 | const auto& buddies = DocumentFinderHelpers::potentialBuddies(url); | ||
397 | foreach(const auto& buddy, buddies) { | 397 | foreach(const auto& buddy, buddies) { | ||
398 | auto buddyFile = clang_getFile(unit, qPrintable(buddy.toLocalFile())); | 398 | auto buddyFile = clang_getFile(unit, qPrintable(buddy.toLocalFile())); | ||
399 | if (buddyFile) { | 399 | if (buddyFile) { | ||
400 | fileFilter << buddyFile; | 400 | fileFilter << buddyFile; | ||
401 | } | 401 | } | ||
402 | } | 402 | } | ||
403 | 403 | | |||
404 | ImplementsInfo info{currentCursor, topCursor, &m_implements, scopes, fileFilter, 0, QString()}; | 404 | ImplementsInfo info{currentCursor, topCursor, &m_implements, scopes, fileFilter, 0, QString()}; | ||
Show All 13 Lines |