Clang: Remove old code

We maybe bring back the clang query interface but the local rename is
better served by other plugins.

Change-Id: I97bedcb20870632b7dd50977794a65b2b09ededb
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2019-07-03 17:57:43 +02:00
parent f864c7a0d8
commit 376aae2711
40 changed files with 5 additions and 1624 deletions

View File

@@ -49,8 +49,6 @@ using testing::_;
using CppTools::CompilerOptionsBuilder;
using ClangBackEnd::RequestSourceLocationsForRenamingMessage;
using Utils::SmallString;
using Utils::SmallStringVector;
@@ -90,33 +88,6 @@ protected:
CppTools::ProjectFile projectFile{qStringFilePath, CppTools::ProjectFile::CXXSource};
};
TEST_F(RefactoringEngine, SendRequestSourceLocationsForRenamingMessage)
{
cursor.setPosition(11);
RequestSourceLocationsForRenamingMessage message(clangBackEndFilePath.clone(),
2,
5,
fileContent,
commandLine.clone(),
1);
EXPECT_CALL(mockRefactoringServer, requestSourceLocationsForRenamingMessage(message))
.Times(1);
engine.startLocalRenaming(CppTools::CursorInEditor{cursor, filePath},
projectPart.data(), {});
}
TEST_F(RefactoringEngine, AfterSendRequestSourceLocationsForRenamingMessageIsUnusable)
{
EXPECT_CALL(mockRefactoringServer, requestSourceLocationsForRenamingMessage(_));
engine.startLocalRenaming(CppTools::CursorInEditor{cursor, filePath},
projectPart.data(), {});
ASSERT_FALSE(engine.isRefactoringEngineAvailable());
}
TEST_F(RefactoringEngine, ExpectSourceUsagesAtInFindUsages)
{
cursor.setPosition(11);