aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangrefactoring
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2018-01-22 14:21:01 +0100
committerMarco Bubke <marco.bubke@qt.io>2018-01-29 13:47:09 +0000
commit0f8befacd3b41c2b05da3881bcbf6a69ea8ba9fb (patch)
tree875ad183700aac1865dfc5ea2da9bc4f26d32cc5 /src/plugins/clangrefactoring
parent3d2db474a4f629849383f105b205cece8142cfa4 (diff)
Clang: On the road to update and preprocessor support
This patch has grown in a quite big change set and it is really hard to divide it in different parts. V2::ProjectPartContainer is now using FileIds instead of file paths. This cleans code up because it is a big step in the direction that internally only file ids are used. But it is depending on the file cache, so the file cache has to be provided as an argument. There is now an interface for transactions too which are ease the testing of them and enables the support of preprocessor. It adds macros as symbols and is saving used macros. The used macro support is enabling update improvements because only if a changed macro is used it needs to be recompiled. This is still in flux and can be changed in later patches. Change-Id: I492a2c9af1201d40fdd9f46a0045f7878bbbaa3d Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'src/plugins/clangrefactoring')
-rw-r--r--src/plugins/clangrefactoring/clangrefactoringplugin.cpp2
-rw-r--r--src/plugins/clangrefactoring/refactoringprojectupdater.cpp5
-rw-r--r--src/plugins/clangrefactoring/refactoringprojectupdater.h3
3 files changed, 6 insertions, 4 deletions
diff --git a/src/plugins/clangrefactoring/clangrefactoringplugin.cpp b/src/plugins/clangrefactoring/clangrefactoringplugin.cpp
index f2b676853ad..3cc4496ce3a 100644
--- a/src/plugins/clangrefactoring/clangrefactoringplugin.cpp
+++ b/src/plugins/clangrefactoring/clangrefactoringplugin.cpp
@@ -88,7 +88,7 @@ public:
QtCreatorClangQueryFindFilter qtCreatorfindFilter{connectionClient.serverProxy(),
qtCreatorSearch,
refactoringClient};
- ProjectUpdater projectUpdate{connectionClient.serverProxy()};
+ ProjectUpdater projectUpdate{connectionClient.serverProxy(), filePathCache};
};
ClangRefactoringPlugin::ClangRefactoringPlugin()
diff --git a/src/plugins/clangrefactoring/refactoringprojectupdater.cpp b/src/plugins/clangrefactoring/refactoringprojectupdater.cpp
index 07a9e97163f..06a4af82d0d 100644
--- a/src/plugins/clangrefactoring/refactoringprojectupdater.cpp
+++ b/src/plugins/clangrefactoring/refactoringprojectupdater.cpp
@@ -28,8 +28,9 @@
namespace ClangRefactoring {
RefactoringProjectUpdater::RefactoringProjectUpdater(ClangBackEnd::ProjectManagementServerInterface &server,
- RefactoringClient &)
- : ClangPchManager::ProjectUpdater(server)
+ RefactoringClient &,
+ ClangBackEnd::FilePathCachingInterface &filePathCache)
+ : ClangPchManager::ProjectUpdater(server, filePathCache)
{
}
diff --git a/src/plugins/clangrefactoring/refactoringprojectupdater.h b/src/plugins/clangrefactoring/refactoringprojectupdater.h
index 3debed0c4dc..f8b771187ec 100644
--- a/src/plugins/clangrefactoring/refactoringprojectupdater.h
+++ b/src/plugins/clangrefactoring/refactoringprojectupdater.h
@@ -35,7 +35,8 @@ class RefactoringProjectUpdater : public ClangPchManager::ProjectUpdater
{
public:
RefactoringProjectUpdater(ClangBackEnd::ProjectManagementServerInterface &server,
- RefactoringClient &client);
+ RefactoringClient &client,
+ ClangBackEnd::FilePathCachingInterface &filePathCache);
};
} // namespace ClangRefactoring