summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppmodelmanagerinterface.h
diff options
context:
space:
mode:
authorSergey Shambir <sergey.shambir.auto@gmail.com>2013-05-08 18:27:03 +0400
committerErik Verbruggen <erik.verbruggen@digia.com>2013-05-13 13:10:10 +0200
commit59b303fadca5d8febdb200744789f28a5df468ca (patch)
tree8261499eca1748e460193b62a0d91e81f2a0fdde /src/plugins/cpptools/cppmodelmanagerinterface.h
parentdf7347efe3be1ad68661c31289a93ac16a4d7ac5 (diff)
downloadqt-creator-59b303fadca5d8febdb200744789f28a5df468ca.tar.gz
CppTools: ProjectPart now collects warning flags
Will be used by ClangCodeModel, but native model also can use it by disabling unused variable/parameter warnings when needed. Change-Id: I184efb3c65e893a2d85a933385cc547b646e6826 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cppmodelmanagerinterface.h')
-rw-r--r--src/plugins/cpptools/cppmodelmanagerinterface.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/plugins/cpptools/cppmodelmanagerinterface.h b/src/plugins/cpptools/cppmodelmanagerinterface.h
index 706be56c63..2688bb9747 100644
--- a/src/plugins/cpptools/cppmodelmanagerinterface.h
+++ b/src/plugins/cpptools/cppmodelmanagerinterface.h
@@ -34,6 +34,7 @@
#include "cppprojectfile.h"
#include <cplusplus/CppDocument.h>
+#include <projectexplorer/toolchain.h>
#include <QObject>
#include <QHash>
@@ -43,10 +44,7 @@
namespace Core { class IEditor; }
namespace CPlusPlus { class LookupContext; }
-namespace ProjectExplorer {
-class Project;
-class ToolChain;
-}
+namespace ProjectExplorer { class Project; }
namespace TextEditor { class BaseTextEditor; }
namespace Utils { class FileName; }
@@ -62,12 +60,7 @@ class CppIndexingSupport;
class CPPTOOLS_EXPORT ProjectPart
{
public:
- ProjectPart()
- : cVersion(C89)
- , cxxVersion(CXX11)
- , cxxExtensions(NoExtensions)
- , qtVersion(UnknownQt)
- {}
+ ProjectPart();
void evaluateToolchain(const ProjectExplorer::ToolChain *tc,
const QStringList &cxxflags,
@@ -114,6 +107,8 @@ public: //attributes
CXXVersion cxxVersion;
CXXExtensions cxxExtensions;
QtVersion qtVersion;
+ ProjectExplorer::ToolChain::WarningFlags cWarningFlags;
+ ProjectExplorer::ToolChain::WarningFlags cxxWarningFlags;
};
class CPPTOOLS_EXPORT CppModelManagerInterface : public QObject