forked from qt-creator/qt-creator
CPlusPlus: Add toLink method to the Symbol
Basically move it from CppTools to CPlusPlus to be able to use it there. Change-Id: I0af80f93bdc029824397ceafdf940cb86c4382b0 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -355,7 +355,7 @@ Link attemptFuncDeclDef(const QTextCursor &cursor, Snapshot snapshot,
|
||||
}
|
||||
|
||||
if (target) {
|
||||
result = CppTools::linkToSymbol(target);
|
||||
result = target->toLink();
|
||||
|
||||
unsigned startLine, startColumn, endLine, endColumn;
|
||||
document->translationUnit()->getTokenStartPosition(name->firstToken(), &startLine,
|
||||
@@ -762,7 +762,7 @@ Link FollowSymbolUnderCursor::findLink(
|
||||
|
||||
}
|
||||
|
||||
link = CppTools::linkToSymbol(def ? def : symbol);
|
||||
link = (def ? def : symbol)->toLink();
|
||||
link.linkTextStart = beginOfToken;
|
||||
link.linkTextEnd = endOfToken;
|
||||
return link;
|
||||
|
||||
Reference in New Issue
Block a user