diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2019-07-05 16:58:07 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2019-07-12 09:13:42 +0000 |
commit | f7520b7d991c34b3d8e3d1d726dc0b606f32c835 (patch) | |
tree | 08771fbd6e8a14a5bf8a7724ac624d0493f55d78 /tests/unit/mockup | |
parent | 6e1595c1b36e8bb0abf5dfff55a60b56bc1c481b (diff) |
Make the project managers tell the code model about include paths
... from the environment.
Fixes: QTCREATORBUG-17985
Change-Id: I9b54e550121cfcc0684a6e173337d59d235c6107
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'tests/unit/mockup')
-rw-r--r-- | tests/unit/mockup/projectexplorer/toolchain.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/unit/mockup/projectexplorer/toolchain.h b/tests/unit/mockup/projectexplorer/toolchain.h index 925b0a2ae8..022520cec0 100644 --- a/tests/unit/mockup/projectexplorer/toolchain.h +++ b/tests/unit/mockup/projectexplorer/toolchain.h @@ -33,6 +33,8 @@ #include <functional> +namespace Utils { class Environment; } + namespace ProjectExplorer { class ToolChain @@ -45,7 +47,9 @@ public: using BuiltInHeaderPathsRunner = std::function<HeaderPaths( const QStringList &cxxflags, const QString &sysRoot, const QString &originalTargetTriple)>; - virtual BuiltInHeaderPathsRunner createBuiltInHeaderPathsRunner() const { return BuiltInHeaderPathsRunner(); } + virtual BuiltInHeaderPathsRunner createBuiltInHeaderPathsRunner(const Utils::Environment &env) const { + return BuiltInHeaderPathsRunner(); + } class MacroInspectionReport { |