diff options
author | Tobias Hunger <tobias.hunger@nokia.com> | 2011-05-13 11:48:34 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@nokia.com> | 2011-05-13 15:57:40 +0200 |
commit | f823791dfbe9425e9d3bb42af6ddd6d8283b913f (patch) | |
tree | da775b49ee8a4d03ee83866dfc3e33f63ae0730d /src/plugins/projectexplorer/gcctoolchainfactories.h | |
parent | 3cf07cba384456a66fcd509a940514dd52ecbcb0 (diff) | |
download | qt-creator-f823791dfbe9425e9d3bb42af6ddd6d8283b913f.tar.gz |
Toolchain: Add clang toolchain
Note: Parsing of error messages is still missing. So Build Issues
are not properly reported yet.
Diffstat (limited to 'src/plugins/projectexplorer/gcctoolchainfactories.h')
-rw-r--r-- | src/plugins/projectexplorer/gcctoolchainfactories.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/gcctoolchainfactories.h b/src/plugins/projectexplorer/gcctoolchainfactories.h index caeea3bd4e..14cdea6b94 100644 --- a/src/plugins/projectexplorer/gcctoolchainfactories.h +++ b/src/plugins/projectexplorer/gcctoolchainfactories.h @@ -108,6 +108,32 @@ private: }; // -------------------------------------------------------------------------- +// ClangToolChainFactory +// -------------------------------------------------------------------------- + +class ClangToolChainFactory : public GccToolChainFactory +{ + Q_OBJECT + +public: + // Name used to display the name of the tool chain that will be created. + QString displayName() const; + QString id() const; + + QList<ToolChain *> autoDetect(); + + bool canCreate(); + ToolChain *create(); + + // Used by the ToolChainManager to restore user-generated tool chains + bool canRestore(const QVariantMap &data); + ToolChain *restore(const QVariantMap &data); + +protected: + GccToolChain *createToolChain(bool autoDetect); +}; + +// -------------------------------------------------------------------------- // MingwToolChainFactory // -------------------------------------------------------------------------- |