forked from qt-creator/qt-creator
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 <cristian.adam@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
@@ -75,7 +75,8 @@ public:
|
||||
SimpleRunWorkerFactory<SimpleTargetRunner, CMakeRunConfiguration> runWorkerFactory;
|
||||
CMakeBuildConfigurationFactory buildConfigFactory;
|
||||
CMakeEditorFactory editorFactor;
|
||||
BuildCMakeTargetLocatorFilter buildCMakeTargetLocatorFiler;
|
||||
BuildCMakeTargetLocatorFilter buildCMakeTargetLocatorFilter;
|
||||
OpenCMakeTargetLocatorFilter openCMakeTargetLocationFilter;
|
||||
|
||||
CMakeKitAspect cmakeKitAspect;
|
||||
CMakeGeneratorKitAspect cmakeGeneratorKitAspect;
|
||||
|
||||
Reference in New Issue
Block a user