forked from qt-creator/qt-creator
ProjectExplorer: Reduce GccToolchain interface a bit
Change-Id: I6c867869d2157611bc8b08b1309d0bce43417f2f Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -206,9 +206,9 @@ static ProjectExplorer::Macros gccPredefinedMacros(const FilePath &gcc,
|
||||
return predefinedMacros;
|
||||
}
|
||||
|
||||
HeaderPaths GccToolchain::gccHeaderPaths(const FilePath &gcc,
|
||||
const QStringList &arguments,
|
||||
const Environment &env)
|
||||
static HeaderPaths gccHeaderPaths(const FilePath &gcc,
|
||||
const QStringList &arguments,
|
||||
const Environment &env)
|
||||
{
|
||||
HeaderPaths builtInHeaderPaths;
|
||||
QByteArray line;
|
||||
@@ -729,16 +729,16 @@ void GccToolchain::initExtraHeaderPathsFunction(ExtraHeaderPathsFunction &&extra
|
||||
m_extraHeaderPathsFunction = std::move(extraHeaderPathsFunction);
|
||||
}
|
||||
|
||||
HeaderPaths GccToolchain::builtInHeaderPaths(const Environment &env,
|
||||
const FilePath &compilerCommand,
|
||||
const QStringList &platformCodeGenFlags,
|
||||
OptionsReinterpreter reinterpretOptions,
|
||||
HeaderPathsCache headerCache,
|
||||
Id languageId,
|
||||
ExtraHeaderPathsFunction extraHeaderPathsFunction,
|
||||
const QStringList &flags,
|
||||
const FilePath &sysRoot,
|
||||
const QString &originalTargetTriple)
|
||||
static HeaderPaths builtInHeaderPaths(const Environment &env,
|
||||
const FilePath &compilerCommand,
|
||||
const QStringList &platformCodeGenFlags,
|
||||
std::function<QStringList(const QStringList &options)> reinterpretOptions,
|
||||
GccToolchain::HeaderPathsCache headerCache,
|
||||
Id languageId,
|
||||
std::function<void(HeaderPaths &)> extraHeaderPathsFunction,
|
||||
const QStringList &flags,
|
||||
const FilePath &sysRoot,
|
||||
const QString &originalTargetTriple)
|
||||
{
|
||||
QStringList arguments = gccPrepareArguments(flags,
|
||||
sysRoot,
|
||||
|
@@ -110,21 +110,6 @@ protected:
|
||||
using ExtraHeaderPathsFunction = std::function<void(HeaderPaths &)>;
|
||||
void initExtraHeaderPathsFunction(ExtraHeaderPathsFunction &&extraHeaderPathsFunction) const;
|
||||
|
||||
static HeaderPaths builtInHeaderPaths(const Utils::Environment &env,
|
||||
const Utils::FilePath &compilerCommand,
|
||||
const QStringList &platformCodeGenFlags,
|
||||
OptionsReinterpreter reinterpretOptions,
|
||||
HeaderPathsCache headerCache,
|
||||
Utils::Id languageId,
|
||||
ExtraHeaderPathsFunction extraHeaderPathsFunction,
|
||||
const QStringList &flags,
|
||||
const Utils::FilePath &sysRoot,
|
||||
const QString &originalTargetTriple);
|
||||
|
||||
static HeaderPaths gccHeaderPaths(const Utils::FilePath &gcc,
|
||||
const QStringList &args,
|
||||
const Utils::Environment &env);
|
||||
|
||||
int priority() const override { return m_priority; }
|
||||
|
||||
QString sysRoot() const override;
|
||||
|
Reference in New Issue
Block a user