GccToolChain Class | Extending Qt Creator Manual

Extending Qt Creator Manual | GccToolChain

Extending Qt Creator Manual 4.6.0

# GccToolChain Class

(ProjectExplorer::GccToolChain)

Inherits: | ProjectExplorer::ToolChain

- List of all members, including inherited members

## Public Types

class | DetectedAbisResult

## Public Functions

| GccToolChain(Core::Id typeId, Detection d)
QStringList | platformCodeGenFlags() const
QStringList | platformLinkerFlags() const
void | resetToolChain(const Utils::FileName &)
void | setPlatformCodeGenFlags(const QStringList &)
void | setPlatformLinkerFlags(const QStringList &)
void | setTargetAbi(const Abi &)
QString | version() const

## Reimplemented Public Functions

virtual void | addToEnvironment(Utils::Environment &env) const override
virtual ToolChain * | clone() const override
virtual Utils::FileName | compilerCommand() const override
virtual CompilerFlags | compilerFlags(const QStringList &cxxflags) const override
virtual ToolChainConfigWidget * | configurationWidget() override
virtual PredefinedMacrosRunner | createPredefinedMacrosRunner() const override
virtual SystemHeaderPathsRunner | createSystemHeaderPathsRunner() const override
virtual QStringList | extraCodeModelFlags() const override
virtual bool | fromMap(const QVariantMap &data) override
virtual bool | isValid() const override
virtual QString | makeCommand(const Utils::Environment &environment) const override
virtual QString | originalTargetTriple() const override
virtual IOutputParser * | outputParser() const override
virtual Macros | predefinedMacros(const QStringList &cxxflags) const override
virtual Utils::FileNameList | suggestedMkspecList() const override
virtual QList<Abi> | supportedAbis() const override
virtual QList<HeaderPath> | systemHeaderPaths(const QStringList &flags, const Utils::FileName &sysRoot) const override
virtual Abi | targetAbi() const override
virtual QVariantMap | toMap() const override
virtual QString | typeDisplayName() const override
virtual WarningFlags | warningFlags(const QStringList &cflags) const override
virtual bool | operator==(const ToolChain &) const override

- 32 public functions inherited from ProjectExplorer::ToolChain

## Static Public Members

void | addCommandPathToEnvironment(const Utils::FileName &command, Utils::Environment &env)

## Protected Types

class | WarningFlagAdder

## Protected Functions

| GccToolChain(const GccToolChain &)
virtual CompilerFlags | defaultCompilerFlags() const
virtual QString | defaultDisplayName() const
virtual DetectedAbisResult | detectSupportedAbis() const
virtual QString | detectVersion() const
void | initExtraHeaderPathsFunction(ExtraHeaderPathsFunction &&extraHeaderPathsFunction) const
Macros | macroCache(const QStringList &allCxxflags) const
void | setCompilerCommand(const Utils::FileName &path)
void | setMacroCache(const QStringList &allCxxflags, const Macros &macroCache) const
void | setOptionsReinterpreter(const OptionsReinterpreter &optionsReinterpreter)
void | setOriginalTargetTriple(const QString &targetTriple)
void | setSupportedAbis(const QList<Abi> &m_abis)

## Reimplemented Protected Functions

virtual void | toolChainUpdated() override

- 2 protected functions inherited from ProjectExplorer::ToolChain

## Static Protected Members

QList<HeaderPath> | gccHeaderPaths(const Utils::FileName &gcc, const QStringList &args, const QStringList &env)

## Member Function Documentation

### GccToolChain::GccToolChain(Core::Id typeId, Detection d)

Default constructs an instance of GccToolChain.

### `[protected]` GccToolChain::GccToolChain(const GccToolChain &)

Copy constructor.

### `[static]` void GccToolChain::addCommandPathToEnvironment(const Utils::FileName &command, Utils::Environment &env)

### `[override virtual]` void GccToolChain::addToEnvironment(Utils::Environment &env) const

### `[override virtual]` ToolChain *GccToolChain::clone() const

### `[override virtual]` Utils::FileName GccToolChain::compilerCommand() const

See also setCompilerCommand().

### `[override virtual]` CompilerFlags GccToolChain::compilerFlags(const QStringList &cxxflags) const

### `[override virtual]` ToolChainConfigWidget *GccToolChain::configurationWidget()

### `[override virtual]` PredefinedMacrosRunner GccToolChain::createPredefinedMacrosRunner() const

### `[override virtual]` SystemHeaderPathsRunner GccToolChain::createSystemHeaderPathsRunner() const

### `[virtual protected]` CompilerFlags GccToolChain::defaultCompilerFlags() const

### `[virtual protected]` QString GccToolChain::defaultDisplayName() const

### `[virtual protected]` DetectedAbisResult GccToolChain::detectSupportedAbis() const

### `[virtual protected]` QString GccToolChain::detectVersion() const

### `[override virtual]` QStringList GccToolChain::extraCodeModelFlags() const

### `[override virtual]` bool GccToolChain::fromMap(const QVariantMap &data)

### `[static protected]` QList<HeaderPath> GccToolChain::gccHeaderPaths(const Utils::FileName &gcc, const QStringList &args, const QStringList &env)

### `[protected]` void GccToolChain::initExtraHeaderPathsFunction(ExtraHeaderPathsFunction &&extraHeaderPathsFunction) const

### `[override virtual]` bool GccToolChain::isValid() const

### `[protected]` Macros GccToolChain::macroCache(const QStringList &allCxxflags) const

See also setMacroCache().

### `[override virtual]` QString GccToolChain::makeCommand(const Utils::Environment &environment) const

### `[override virtual]` QString GccToolChain::originalTargetTriple() const

See also setOriginalTargetTriple().

### `[override virtual]` IOutputParser *GccToolChain::outputParser() const

### QStringList GccToolChain::platformCodeGenFlags() const

See also setPlatformCodeGenFlags().

### QStringList GccToolChain::platformLinkerFlags() const

See also setPlatformLinkerFlags().

### `[override virtual]` Macros GccToolChain::predefinedMacros(const QStringList &cxxflags) const

### void GccToolChain::resetToolChain(const Utils::FileName &)

### `[protected]` void GccToolChain::setCompilerCommand(const Utils::FileName &path)

See also compilerCommand().

### `[protected]` void GccToolChain::setMacroCache(const QStringList &allCxxflags, const Macros &macroCache) const

See also macroCache().

### `[protected]` void GccToolChain::setOptionsReinterpreter(const OptionsReinterpreter &optionsReinterpreter)

### `[protected]` void GccToolChain::setOriginalTargetTriple(const QString &targetTriple)

See also originalTargetTriple().

### void GccToolChain::setPlatformCodeGenFlags(const QStringList &)

See also platformCodeGenFlags().

### void GccToolChain::setPlatformLinkerFlags(const QStringList &)

See also platformLinkerFlags().

### `[protected]` void GccToolChain::setSupportedAbis(const QList<Abi> &m_abis)

See also supportedAbis().

### void GccToolChain::setTargetAbi(const Abi &)

See also targetAbi().

### `[override virtual]` Utils::FileNameList GccToolChain::suggestedMkspecList() const

### `[override virtual]` QList<Abi> GccToolChain::supportedAbis() const

See also setSupportedAbis().

### `[override virtual]` QList<HeaderPath> GccToolChain::systemHeaderPaths(const QStringList &flags, const Utils::FileName &sysRoot) const

### `[override virtual]` Abi GccToolChain::targetAbi() const

See also setTargetAbi().

### `[override virtual]` QVariantMap GccToolChain::toMap() const

### `[override virtual protected]` void GccToolChain::toolChainUpdated()

### `[override virtual]` QString GccToolChain::typeDisplayName() const

### QString GccToolChain::version() const

### `[override virtual]` WarningFlags GccToolChain::warningFlags(const QStringList &cflags) const

### `[override virtual]` bool GccToolChain::operator==(const ToolChain &) const