From d9cf17bbda5eda66bf0de0fa1ad0cfc587e2d95c Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Wed, 24 Jul 2019 14:49:27 +0200 Subject: CMake: Add locator filter to open CMake target definitions Add a "cmo" filter to the locator that will open the CMake target definition in the editor. Note that this is based on the target data extracted from cmake. For tealeaf-reader and server-mode this information is guessed based on the targets source directory (plus CMakeLists.txt). These modes will just open that file. For fileapi the information is accurate and based on the backtrace that comes with the target information. "cmo" will open the exact file/line from the backtrace here. Task-number: QTCREATORBUG-18553 Change-Id: I4ee0eb25d1d763bd0d8033e506bf85cb2bc1f2dc Reviewed-by: Cristian Adam Reviewed-by: Alexandru Croitor --- src/plugins/cmakeprojectmanager/cmakeprojectplugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/cmakeprojectmanager/cmakeprojectplugin.cpp') diff --git a/src/plugins/cmakeprojectmanager/cmakeprojectplugin.cpp b/src/plugins/cmakeprojectmanager/cmakeprojectplugin.cpp index facbcaa9f62..d8d2164395e 100644 --- a/src/plugins/cmakeprojectmanager/cmakeprojectplugin.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeprojectplugin.cpp @@ -75,7 +75,8 @@ public: SimpleRunWorkerFactory runWorkerFactory; CMakeBuildConfigurationFactory buildConfigFactory; CMakeEditorFactory editorFactor; - BuildCMakeTargetLocatorFilter buildCMakeTargetLocatorFiler; + BuildCMakeTargetLocatorFilter buildCMakeTargetLocatorFilter; + OpenCMakeTargetLocatorFilter openCMakeTargetLocationFilter; CMakeKitAspect cmakeKitAspect; CMakeGeneratorKitAspect cmakeGeneratorKitAspect; -- cgit v1.2.3