forked from qt-creator/qt-creator
Clang: add globalFollowSymbol to RefactoringEngine
Allows to follow outside of current TU. Change-Id: Ieea2fd72bfdf6d60a988b40efcf2f41c5a71d045 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "cpprefactoringengine.h"
|
||||
#include "cppsemanticinfo.h"
|
||||
#include "cpptoolsreuse.h"
|
||||
#include "cppfollowsymbolundercursor.h"
|
||||
|
||||
#include <texteditor/texteditor.h>
|
||||
|
||||
@@ -99,4 +100,16 @@ void CppRefactoringEngine::findUsages(const CursorInEditor &data,
|
||||
}
|
||||
}
|
||||
|
||||
CppRefactoringEngine::Link CppRefactoringEngine::globalFollowSymbol(
|
||||
const CursorInEditor &data,
|
||||
const CPlusPlus::Snapshot &snapshot,
|
||||
const CPlusPlus::Document::Ptr &documentFromSemanticInfo,
|
||||
SymbolFinder *symbolFinder,
|
||||
bool inNextSplit) const
|
||||
{
|
||||
FollowSymbolUnderCursor followSymbol;
|
||||
return followSymbol.findLink(data, true, snapshot, documentFromSemanticInfo,
|
||||
symbolFinder, inNextSplit);
|
||||
}
|
||||
|
||||
} // namespace CppEditor
|
||||
|
||||
Reference in New Issue
Block a user