forked from qt-creator/qt-creator
Clang: Move clang paths helper functions to Core plugin
These functions require core plugin so they can't go to utils library. At the same time to use them in ProjectExplorer plugin there are not too many choices where to put them without introducing new dependencies. Change-Id: I3cccccffaae8ac4bbce924fd809b5423da5dc503 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -209,7 +209,8 @@ AnalyzeUnits ClangToolRunControl::unitsToAnalyze(const QString &clangVersion)
|
||||
{
|
||||
QTC_ASSERT(m_projectInfo.isValid(), return AnalyzeUnits());
|
||||
|
||||
const QString clangResourceDirectory = clangIncludeDirectory(m_clangExecutable, clangVersion);
|
||||
const QString clangResourceDirectory = Core::ICore::clangIncludeDirectory(m_clangExecutable,
|
||||
clangVersion);
|
||||
return toAnalyzeUnits(m_fileInfos, clangVersion, clangResourceDirectory);
|
||||
}
|
||||
|
||||
@@ -232,7 +233,7 @@ ClangToolRunControl::ClangToolRunControl(RunControl *runControl,
|
||||
const FileInfos &fileInfos)
|
||||
: RunWorker(runControl)
|
||||
, m_projectBuilder(new ProjectBuilder(runControl, target->project(), this))
|
||||
, m_clangExecutable(CppTools::clangExecutable(CLANG_BINDIR))
|
||||
, m_clangExecutable(Core::ICore::clangExecutable(CLANG_BINDIR))
|
||||
, m_temporaryDir("clangtools-XXXXXX")
|
||||
, m_target(target)
|
||||
, m_fileInfos(fileInfos)
|
||||
|
||||
Reference in New Issue
Block a user