aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmakeprojectmanager/qmakeparsernodes.h
diff options
context:
space:
mode:
authorChristian Kandeler <[email protected]>2023-01-25 14:15:15 +0100
committerChristian Kandeler <[email protected]>2023-01-27 12:42:23 +0000
commit97976fd3cbdd57ed83cdc3e606196f2bb7ee1a78 (patch)
treef7e8241054b9e2e727d71cf8aad93757d246ea19 /src/plugins/qmakeprojectmanager/qmakeparsernodes.h
parent49f3b8efd75a49c3a92e86a02088b4bcd40e0a61 (diff)
ProjectExplorer: Refactor BuildSystem::extraCompilerForSource
Factor out backend into more generic function to easily support new accessors. No functional changes. Change-Id: I715ce2842d2c63574bdf6ada0d0e32fbfd5d08fb Reviewed-by: <[email protected]> Reviewed-by: Christian Stenger <[email protected]>
Diffstat (limited to 'src/plugins/qmakeprojectmanager/qmakeparsernodes.h')
-rw-r--r--src/plugins/qmakeprojectmanager/qmakeparsernodes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/qmakeprojectmanager/qmakeparsernodes.h b/src/plugins/qmakeprojectmanager/qmakeparsernodes.h
index f9700b7f549..34c4958564b 100644
--- a/src/plugins/qmakeprojectmanager/qmakeparsernodes.h
+++ b/src/plugins/qmakeprojectmanager/qmakeparsernodes.h
@@ -301,7 +301,8 @@ public:
const Utils::FilePath &sourceFile,
const ProjectExplorer::FileType &sourceFileType) const;
QList<ProjectExplorer::ExtraCompiler *> extraCompilers() const;
- ProjectExplorer::ExtraCompiler *extraCompilerForSource(const Utils::FilePath &sourceFile);
+ ProjectExplorer::ExtraCompiler *findExtraCompiler(
+ const std::function<bool(ProjectExplorer::ExtraCompiler *)> &filter);
TargetInformation targetInformation() const;
InstallsList installsList() const;