forked from qt-creator/qt-creator
Remove ClangRefactoring and ClangPchManager
This removes the plugins and tools, and removes all the tests that would fail to build because of that. Fixes: QTCREATORBUG-25659 Change-Id: I8adb5d503fc8eea313bcaada421f309dbbfa8c26 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
|
||||
#include "clangdclient.h"
|
||||
#include "clangmodelmanagersupport.h"
|
||||
#include "sourcelocationscontainer.h"
|
||||
|
||||
#include <cpptools/cppmodelmanager.h>
|
||||
#include <languageclient/languageclientsymbolsupport.h>
|
||||
@@ -74,10 +75,9 @@ void RefactoringEngine::startLocalRenaming(const CppTools::CursorInEditor &data,
|
||||
const QString symbolName = cursor.selectedText();
|
||||
ClangBackEnd::SourceLocationsContainer container;
|
||||
for (auto& use : info.useRanges) {
|
||||
container.insertSourceLocation(ClangBackEnd::FilePathId(),
|
||||
container.insertSourceLocation({},
|
||||
use.line,
|
||||
use.column,
|
||||
use.length);
|
||||
use.column);
|
||||
}
|
||||
renameSymbolsCallback(symbolName, container, data.cursor().document()->revision());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user