Extending Qt Creator Manual | ToolChain

Extending Qt Creator Manual 4.7.0

# ToolChain Class

(Debugger::ProjectExplorer::ToolChain)

The ToolChain class represents a tool chain. More...

Header: | #include <ToolChain>

- List of all members, including inherited members

## Public Types

enum | CompilerFlag { NoFlags, StandardCxx11, StandardC99, StandardC11, ..., StandardCxx98 }
flags | CompilerFlags
enum | Detection { ManualDetection, AutoDetection, AutoDetectionFromSettings }

## Public Functions

virtual | ~ToolChain()
virtual void | addToEnvironment(Utils::Environment &env) const = 0
virtual bool | canClone() const
virtual Debugger::ProjectExplorer::ToolChain * | clone() const = 0
int | compilerCommand() const
virtual Debugger::ProjectExplorer::ToolChain::CompilerFlags | compilerFlags(const int &cxxflags) const = 0
virtual Debugger::ProjectExplorer::ToolChainConfigWidget * | configurationWidget() = 0
int | createPredefinedMacrosRunner() const
int | createSystemHeaderPathsRunner() const
Debugger::ProjectExplorer::ToolChain::Detection | detection() const
Debugger::QString | displayName() const
int | extraCodeModelFlags() const
Debugger::QByteArray | id() const
bool | isAutoDetected() const
virtual bool | isValid() const = 0
Core::Id | language() const
virtual Debugger::QString | makeCommand(const Utils::Environment &env) const = 0
virtual Debugger::QString | originalTargetTriple() const
virtual Debugger::ProjectExplorer::IOutputParser * | outputParser() const = 0
int | predefinedMacros(const int &) const
void | setDisplayName(const Debugger::QString &name)
void | setLanguage(Core::Id language)
int | suggestedDebugger() const
int | suggestedMkspecList() const
virtual QList<Debugger::ProjectExplorer::Abi> | supportedAbis() const
virtual QList<Debugger::ProjectExplorer::HeaderPath> | systemHeaderPaths(const int &cxxflags, const int &sysRoot) const = 0
virtual Debugger::ProjectExplorer::Abi | targetAbi() const = 0
int | toMap() const
virtual Debugger::QString | typeDisplayName() const = 0
Core::Id | typeId() const
virtual QList<Debugger::ProjectExplorer::Task> | validateKit(const Debugger::ProjectExplorer::Kit *k) const
virtual Debugger::ProjectExplorer::WarningFlags | warningFlags(const int &cflags) const = 0
virtual bool | operator==(const Debugger::ProjectExplorer::ToolChain &) const

## Protected Functions

| ToolChain(Core::Id typeId, Debugger::ProjectExplorer::ToolChain::Detection d)
| ToolChain(const Debugger::ProjectExplorer::ToolChain &)
virtual bool | fromMap(const int &data)
virtual void | toolChainUpdated()

## Detailed Description

The ToolChain class represents a tool chain.

See also ProjectExplorer::ToolChainManager.

## Member Type Documentation

### enum ToolChain::CompilerFlag
flags ToolChain::CompilerFlags

The CompilerFlags type is a typedef for QFlags<CompilerFlag>. It stores an OR combination of CompilerFlag values.

### enum ToolChain::Detection

## Member Function Documentation

### `[protected]` ToolChain::ToolChain(Core::Id typeId, Debugger::ProjectExplorer::ToolChain::Detection d)

Default constructs an instance of ToolChain.

### `[protected]` ToolChain::ToolChain(const Debugger::ProjectExplorer::ToolChain &)

Default constructs an instance of ToolChain.

### `[virtual]` ToolChain::~ToolChain()

Destroys the instance of ToolChain. The destructor is virtual.

### `[pure virtual]` void ToolChain::addToEnvironment(Utils::Environment &env) const

### `[virtual]` bool ToolChain::canClone() const

### `[pure virtual]` Debugger::ProjectExplorer::ToolChain *ToolChain::clone() const

### int ToolChain::compilerCommand() const

### `[pure virtual]` Debugger::ProjectExplorer::ToolChain::CompilerFlags ToolChain::compilerFlags(const int &cxxflags) const

### `[pure virtual]` Debugger::ProjectExplorer::ToolChainConfigWidget *ToolChain::configurationWidget()

### int ToolChain::createPredefinedMacrosRunner() const

### int ToolChain::createSystemHeaderPathsRunner() const

### Debugger::ProjectExplorer::ToolChain::Detection ToolChain::detection() const

### Debugger::QString ToolChain::displayName() const

See also setDisplayName().

### int ToolChain::extraCodeModelFlags() const

### `[virtual protected]` bool ToolChain::fromMap(const int &data)

### Debugger::QByteArray ToolChain::id() const

### bool ToolChain::isAutoDetected() const

### `[pure virtual]` bool ToolChain::isValid() const

### Core::Id ToolChain::language() const

See also setLanguage().

### `[pure virtual]` Debugger::QString ToolChain::makeCommand(const Utils::Environment &env) const

### `[virtual]` Debugger::QString ToolChain::originalTargetTriple() const

### `[pure virtual]` Debugger::ProjectExplorer::IOutputParser *ToolChain::outputParser() const

### int ToolChain::predefinedMacros(const int &) const

### void ToolChain::setDisplayName(const Debugger::QString &name)

See also displayName().

### void ToolChain::setLanguage(Core::Id language)

See also language().

### int ToolChain::suggestedDebugger() const

### int ToolChain::suggestedMkspecList() const

### `[virtual]` QList<Debugger::ProjectExplorer::Abi> ToolChain::supportedAbis() const

### `[pure virtual]` QList<Debugger::ProjectExplorer::HeaderPath> ToolChain::systemHeaderPaths(const int &cxxflags, const int &sysRoot) const

### `[pure virtual]` Debugger::ProjectExplorer::Abi ToolChain::targetAbi() const

### int ToolChain::toMap() const

### `[virtual protected]` void ToolChain::toolChainUpdated()

### `[pure virtual]` Debugger::QString ToolChain::typeDisplayName() const

### Core::Id ToolChain::typeId() const

### `[virtual]` QList<Debugger::ProjectExplorer::Task> ToolChain::validateKit(const Debugger::ProjectExplorer::Kit *k) const

### `[pure virtual]` Debugger::ProjectExplorer::WarningFlags ToolChain::warningFlags(const int &cflags) const

### `[virtual]` bool ToolChain::operator==(const Debugger::ProjectExplorer::ToolChain &) const