forked from qt-creator/qt-creator
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user