CppTools: added ProjectPart::evaluateToolchain()

At this moment each project manager duplicates code that reads C++ code
model information from ProjectExplorer::ToolChain.
This change provides unified way.

Change-Id: If9ecfc40991aab90768dd69f5f10f31bbf5fbc21
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Sergey Shambir
2013-04-28 15:40:54 +04:00
parent 6faf45a465
commit ec8a01c150
2 changed files with 67 additions and 1 deletions

View File

@@ -43,8 +43,12 @@
namespace Core { class IEditor; }
namespace CPlusPlus { class LookupContext; }
namespace ProjectExplorer { class Project; }
namespace ProjectExplorer {
class Project;
class ToolChain;
}
namespace TextEditor { class BaseTextEditor; }
namespace Utils { class FileName; }
namespace CppTools {
class AbstractEditorSupport;
@@ -65,6 +69,11 @@ public:
, qtVersion(UnknownQt)
{}
void evaluateToolchain(const ProjectExplorer::ToolChain *tc,
const QStringList &cxxflags,
const QStringList &cflags,
const Utils::FileName &sysRoot);
public:
enum CVersion {
C89,