forked from qt-creator/qt-creator
ProjectExplorer: Add clangdExecutable to IDevice
Change-Id: I131212326696887d3a5644a35788f6a522dbee45 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -68,6 +68,7 @@
|
||||
#include <QToolButton>
|
||||
|
||||
#include <numeric>
|
||||
#include <optional>
|
||||
|
||||
#ifdef Q_OS_UNIX
|
||||
#include <sys/types.h>
|
||||
@@ -168,6 +169,13 @@ public:
|
||||
void stopCurrentContainer();
|
||||
void fetchSystemEnviroment();
|
||||
|
||||
std::optional<FilePath> clangdExecutable() const
|
||||
{
|
||||
if (m_data.clangdExecutable.isEmpty())
|
||||
return std::nullopt;
|
||||
return m_data.clangdExecutable;
|
||||
}
|
||||
|
||||
bool addTemporaryMount(const FilePath &path, const FilePath &containerPath);
|
||||
|
||||
QStringList createMountArgs() const;
|
||||
@@ -1160,4 +1168,9 @@ bool DockerDevice::prepareForBuild(const Target *target)
|
||||
return d->prepareForBuild(target);
|
||||
}
|
||||
|
||||
std::optional<FilePath> DockerDevice::clangdExecutable() const
|
||||
{
|
||||
return d->clangdExecutable();
|
||||
}
|
||||
|
||||
} // namespace Docker::Internal
|
||||
|
||||
Reference in New Issue
Block a user