aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nim
diff options
context:
space:
mode:
authorChristian Kandeler <[email protected]>2025-03-12 13:36:52 +0100
committerChristian Kandeler <[email protected]>2025-03-12 13:53:53 +0000
commit381f72ab16760757ce164420fd272ccec9ce916d (patch)
tree5d05766d8da14e67f426da3818f9aab058b91b80 /src/plugins/nim
parent767055def52da17d2ac565d106de041a04654e26 (diff)
ProjectExplorer: Make build system name available in Project
There is a one-to-one correspondence between the types of Project and BuildSystem, so we shouldn't need access to a BuildSystem object to get at the build system name. Change-Id: Ic09c58e42e609d5db8cbf9f85bbe87d1ec3221c2 Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/nim')
-rw-r--r--src/plugins/nim/project/nimbleproject.cpp2
-rw-r--r--src/plugins/nim/project/nimbleproject.h2
-rw-r--r--src/plugins/nim/project/nimproject.cpp4
3 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/nim/project/nimbleproject.cpp b/src/plugins/nim/project/nimbleproject.cpp
index 6cb71bc9ec3..3407d4a15e9 100644
--- a/src/plugins/nim/project/nimbleproject.cpp
+++ b/src/plugins/nim/project/nimbleproject.cpp
@@ -342,7 +342,7 @@ NimbleProject::NimbleProject(const FilePath &fileName)
setDisplayName(fileName.completeBaseName());
// ensure debugging is enabled (Nim plugin translates nim code to C code)
setProjectLanguages(Core::Context(ProjectExplorer::Constants::CXX_LANGUAGE_ID));
- setBuildSystemCreator<NimbleBuildSystem>();
+ setBuildSystemCreator<NimbleBuildSystem>("nimble");
}
void NimbleProject::toMap(Store &map) const
diff --git a/src/plugins/nim/project/nimbleproject.h b/src/plugins/nim/project/nimbleproject.h
index 4a61306235c..b6be3f2efbd 100644
--- a/src/plugins/nim/project/nimbleproject.h
+++ b/src/plugins/nim/project/nimbleproject.h
@@ -51,7 +51,7 @@ private:
ProjectExplorer::Node *,
const Utils::FilePairs &filesToRename,
Utils::FilePaths *notRenamed) override;
- QString name() const final { return QLatin1String("mimble"); }
+
void triggerParsing() final;
std::vector<NimbleTask> m_tasks;
diff --git a/src/plugins/nim/project/nimproject.cpp b/src/plugins/nim/project/nimproject.cpp
index 0659d5faf28..54fc7ace2d7 100644
--- a/src/plugins/nim/project/nimproject.cpp
+++ b/src/plugins/nim/project/nimproject.cpp
@@ -159,8 +159,6 @@ public:
Node *,
const Utils::FilePairs &filesToRename,
Utils::FilePaths *notRenamed) final;
- QString name() const final { return QLatin1String("nim"); }
-
void triggerParsing() final;
protected:
@@ -354,7 +352,7 @@ NimProject::NimProject(const FilePath &filePath) : Project(Constants::C_NIM_MIME
setDisplayName(filePath.completeBaseName());
// ensure debugging is enabled (Nim plugin translates nim code to C code)
setProjectLanguages(Core::Context(ProjectExplorer::Constants::CXX_LANGUAGE_ID));
- setBuildSystemCreator<NimBuildSystem>();
+ setBuildSystemCreator<NimBuildSystem>("nim");
}
void NimProject::toMap(Store &map) const